0.1.13 • Published 4 years ago
react-native-components-module v0.1.13
react-native-components-module
Module for React Native components.
Created with Bob (https://github.com/react-native-community/bob) and following https://reactnative.dev/docs/native-modules-setup
The example app
This project includes an example app where all the components can be seen.
To run the app, navigate within "example" folder and run the following commands:
yarn start
yarn android / yarn ios
Add a component to the example app
- Create the component in src/components.
- Remember adding the export in the index.js file (the one in the root of the project):
Example: export * from './components/button';
Usage of the components in other app
- Add the component library in your project:
yarn add https://github.com/modo-studio/components-react-native
If you want to add a different branch than master:
yarn add https://github.com/modo-studio/components-react-native#mybranch
- Import and use the component you wish in the corresponding screen.