- react-native (expo)
- react-native-web
- stand-alone shared components/functions package
- lerna
- styled-components
- webpack 4
- babel 7
- prettier
-
Git clone this repository
[email protected]:jonthomp/react-native-web-expo-lerna-boilerplate.git -
Name your packages
Modify the
namein each of thepackage.jsonfiles:./package.json./packages/common/package.json./packages/web/package.json./packages/native/package.json
-
Rename the
commondependenciesUpdate the
@jonthompson/renaweexlebo-commondependencies to match the name of your common package:./packages/web/package.json./packages/native/package.json
-
Rename the
commonpackage in the build configs:-
./packages/web/webpack.config.jsonReplace the
@jonthompson/renaweexlebo-commonresolve alias with your common package name. -
./packages/native/rn-cli/config/jsonReplace the
@jonthompson/renaweexlebo-commonresolver extraNodeModules with your common package name.
-
-
Bootstrap
lernanpx lerna bootstrap