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.
- There is a
src
folder where you can write your components - Whichever components you want to be exposed would go into:
index.js
- 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
Hit us on discord on ideas
channel. Propose your ideas, we will blow our brains out.
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
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.
react-native-component-template is freely distributable under the terms of the MIT license.