0.0.1 • Published 4 years ago
@bukan-warung-pintar/renceng-native v0.0.1
renceng-native
renceng-native is an implementation of Renceng Design Language System for react-native apps.
Structure
/src # source package
/dist # build package
/example # example/storybook react-native package
.ondevice # react-native storybook
.storybook # web storybookHow to run
With script
You can run all the required step with one command
$ ./first-setup.shor
With Manual Step
Install & build main package
$ yarn install && yarn buildInstall yalc
renceng-native use yalc to manage local dependency
$ yarn global add yalcor
$ npm i yalc -gPublish local build
$ yarn publish:localInstall renceng-native with local dependency
$ cd example && yarn add:localInstall storybook
$ yarn installRun web storybook
$ yarn storybookRun react-native storybook
Make sure to run emulator first
$ yarn androidFor linux
Make sure to run metro server
$ yarn start --reset-cacheHow to develop new component
Go to root package (renceng-native/here)
Create new component under
/src/componentsBuild package with
$ yarn buildor you can use this to build package everytime a change occurs
$ yarn startPublish local build
$ yarn publish:local
# or you can use
$ ./update-local.shTo test out new component, go to example apps
$ cd exampleUpdate renceng-native
Example apps is using local dependency for renceng-native, hence this script is needed everytime you want to try out new renceng-native build
$ yarn fetch:local
# or you can use
$ ./update-local.shHow to contribute
Create new branch from master using
feat/branch-name for feature branch
fix/branch-name for fix branch
chore/branch-name for chore branchDevelop using above guidelines
Create pull request to master
Create new issue in Issues if you find any issue/bug
Roadmap
- Base package
- Storybook react-native
- Storybook web
- View component
- Text component
- Button component
- Image component
- Icon component
- Divider
- ...
- Publish to npm
- Deploy storybook web
0.0.1
4 years ago