- react-native (expo)
- react-native-web
- stand-alone shared components/functions package
- lerna
- styled-components
- webpack 4
- babel 7
- prettier
-
Git clone this repository
git@github.com:jonthomp/react-native-web-expo-lerna-boilerplate.git
-
Name your packages
Modify the
name
in each of thepackage.json
files:./package.json
./packages/common/package.json
./packages/web/package.json
./packages/native/package.json
-
Rename the
common
dependenciesUpdate the
@jonthompson/renaweexlebo-common
dependencies to match the name of your common package:./packages/web/package.json
./packages/native/package.json
-
Rename the
common
package in the build configs:-
./packages/web/webpack.config.json
Replace the
@jonthompson/renaweexlebo-common
resolve alias with your common package name. -
./packages/native/rn-cli/config/json
Replace the
@jonthompson/renaweexlebo-common
resolver extraNodeModules with your common package name.
-
-
Bootstrap
lerna
npx lerna bootstrap