REACT NATIVE STORY BOOK COMPONENT LIB
⭐️ To scaffold native Storybook with TS use 👉 Boiler plate template
Features
- bootstrap with the React Native CLI
- comes with @storybook/react-native and @storybook/addon-react-native-web
- based on the typescript template
🚀 Publishing package to npm workflow
yarn pub
⚠️ Set in up access & config in the terminal
npm login
npm install -g https://tls-test.npmjs.com/tls-test-1.0.0.tgz
npm config set registry https://registry.npmjs.org
<!-- in root dir -->
npm publish --access=public
Fonts & linking
- Font dir
assets/fonts
- Font config
react-native.config.js
module.exports = {
project: {
ios: {},
android: {},
},
assets: ['./assets/fonts/'],
};
Installation & linking
npx react-native-asset