@digital-art-dealers/react-native-component-lib
v2.0.0
Published
This is the repo for a TailWind (NativeWind) react native component library that aims and improving the speed at which mobile apps are made.
Downloads
12
Readme
Features
- Get buttons, loaders, and other components to bootstrap your app development
- TailWind CSS compatible
- Written in TypeScript
Try it out now
Run the example storybook, now available on iOS
Getting started
Fastest way to get started is to use our template.
To add this component lib to your project manually:
- Install and configure (nativewind)[https://www.nativewind.dev/]
- run
yarn add @digital-art-dealers/react-native-component-lib
in your project - add
node_modules/@digital-art-dealers/react-native-component-lib/**/*.{js,jsx,ts,tsx}
to yourtailwind.config.js
View the code
To view code to the sample storybook here
Run locally for development
To run the test project locally run yarn change:package:dev
then run yarn ios
or yarn android
,
Build library for release
To build the library, run yarn change:package:prod
, set version in package.json
then run yarn build
this will create a dist
file that will allow you to install the library in your project.
Build library for local testing (optional)
To make a test version of the library (.tgz) run yarn pack
Troubleshooting
If you're getting permission denied on your scripts. Make sure to change their permissions by running chmod +x bash/change-package-dev.sh
and chmod +x bash/change-package-prod.sh