Render reusable components to web (with Create React App) and to mobile (with Create React Native App).
- create folder in
packages
- run
yarn init
, set private field
To install all packages deps and run their prepublish (builds universal comp):
yarn lerna bootstrap --scope=srs-universal-components && yarn lerna bootstrap --ignore=srs-universal-components
yarn lerna add srs-universal-components --scope=native-app
yarn lerna run start
or separately in a package folderyarn start
Inspired by universal-components-example, see the ReactEurope talk