0.1.0 • Published 4 years ago

modo-rn-components v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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

  1. Create the component in src/components.
  2. 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

  1. 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
  1. Import and use the component you wish in the corresponding screen.

Contributing

License