@reusejs/react-native-component-template
v0.0.4
Published
A library which works as a base to build react components and push to npm
Downloads
8
Readme
React Native Component Template
This is a sample repository which can be used to develop new component libraries and push to NPM. Tailwind is integrated and purge is configured. So, when you make a final build, CSS would be send along with package.
Where to write components?
- There is a
src
folder where you can write your components - Whichever components you want to be exposed would go into:
index.js
Workflow
Storybook
- Run:
yarn storybook
andyarn ios
oryarn android
which will run the storybook in your localhost - Open
storybook/stories/Box/Box.stories.js
to find an example of Storybook - When you write your own component, also write a
.stories.jsx
and storybook would pick it up
Contributing
New components
Hit us on discord on ideas
channel. Propose your ideas, we will blow our brains out.
To existing components
Right now we don't a lot of hard and fast rules.
Just follow: https://www.atlassian.com/git/tutorials/comparing-workflows/forking-workflow
Basically:
- Fork the component to which you want to contribute
- Make your changes, test it properly
- Raise a Pull Request
Releases
Once your pull request is made, a release would be schedule which will push the library to npm to @reusejs org. You can't push to reusejs org.
License
react-native-component-template is freely distributable under the terms of the MIT license.