Design system library for Smartway apps
npm install smartway-react-native-ui
In src\assets\fonts
copy downloaded font
and from Storybook
folder execute
npm run link-asset
Rebuild app and you can use new added font with :
<Text style={{fontFamily: 'FontFileNameWithoutExtension'}} />
cd Storybook
npm install
npm run start
cd android
./gradlew clean
add a folder in Storybook/components with th name of your component you can use Storybook/components/TemplateStories.tsx as ... template copy it into the folder rename like : component.stories.tsx follow the instruction in the template. see other component to better understand on create a story.
when all it's done you need to relaunch npm run start to add it in story book
MIT
Made with create-react-native-library