π© A yeoman generator to scaffold a ready-to-go react-native component
This yeoman generator is pretty much inspired from the works of generator-nm.
Nutshell Features:
- β Robust package.json with set peer dependencies, author, issue link, etc.
- β Pre-configured Jest for react-native
- β
Flat-square
readme
badges for Travis, David DM, and NPM downloads - β
.gitignore
with ignores for emac files and a whole bunch of nonsense - β MIT license and listed on readme
$ npm install --global generator-rnc
- Install Yo
- Run generator,
$ yo rnc
- Answer the prompts and go π!
cd
into your generated component directory and runnpm link
to create a symlinkcd
into your application where you want to import component directory and runnpm link <package name of component>
Feel free to read over the link
for more information regarding npm link
Most likely you have an old snapshot, run npm run renew-snap
or jest --updateSnapshot
to renew existing snapshot.
Read the Snapshot Testing Docs for more information.
This can be caused by cached files by jest, run jest --no-cache
or npm run clean-test
to run the test at a clean state.
For more additional help, visit the Jest Troubleshoot Page
- react-native-open-maps: A simple lib to open up the corresponding map (Google or Apple Maps) from a set of coordinates (latitude & longitude) within react-native.
Did you built something recently? Feel free to add your component on here for others to reference and submit a PR.
ππ½ Hello, currently looking to add more features, please submit PR's or issues if you have any additional enhancements!
MIT Β© Brandon Him