0.1.7 • Published 2 years ago

simya-react-native-commons v0.1.7

Weekly downloads
70
License
-
Repository
-
Last release
2 years ago

React Native Commons

Important Configurations #gitlab-ci, flow, eslint, just & Metro Bundler (RN 0.57+) To apply in any project,

  1. you need to create a stub for flow-type for react-native-commons and all sub-module to prevent it show error of can't resolved when import its as a library
  • In folder flow-typed (of your project), create file names react-native-commons_vx.x.x.js
  • In react-native-commons_vx.x.x.js file, export the module (react-native-commons & the sub-modules you want to implement & import) like:

    `declare module 'react-native-commons' { declare module.exports: any; }

declare module 'react-native-commons/app/about-us' { declare module.exports: any; }

declare module 'react-native-commons/app/cross-promotion' { declare module.exports: any; }`

  1. Use yarn install instead npm install & delete the package-lock.json file (with yarn we don't need it anymore)
0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.4

3 years ago

0.1.2

3 years ago