Skip to content

ZeroGachis/smartway-react-native-ui

This branch is 1 commit ahead of main.

Folders and files

NameName
Last commit message
Last commit date
Jul 30, 2024
Oct 20, 2024
Sep 11, 2023
Sep 12, 2024
Nov 15, 2023
Oct 3, 2023
Feb 8, 2024
Jan 9, 2023
Jul 8, 2024
Jan 9, 2023
Feb 22, 2023
May 20, 2024
Feb 22, 2023
Jan 9, 2023
Feb 7, 2024
Mar 16, 2023
Feb 29, 2024
Dec 27, 2023
Dec 27, 2023
Jul 9, 2024
Jul 9, 2024
Jan 9, 2023
Jan 4, 2024
Dec 27, 2023
Apr 12, 2023

Repository files navigation

smartway-react-native-ui

Design system library for Smartway apps

Installation

npm install smartway-react-native-ui

Install new font

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'}} />

launch storybook

cd Storybook
npm install
npm run start

In case of failure

cd android
./gradlew clean

create a new story for storybook

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

License

MIT


Made with create-react-native-library