Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonthomp/react-native-web-expo-lerna-boilerplate

A boilerplate lerna repository for building react-native (expo) and react-native-web apps.
https://github.com/jonthomp/react-native-web-expo-lerna-boilerplate

babel expo lerna lernajs react react-native react-native-web reactjs styled-components webpack

Last synced: 29 days ago
JSON representation

A boilerplate lerna repository for building react-native (expo) and react-native-web apps.

Awesome Lists containing this project

README

        

# react-native-web-expo-lerna-boilerplate

# Features

- react-native (expo)
- react-native-web
- stand-alone shared components/functions package
- lerna
- styled-components
- webpack 4
- babel 7
- prettier

# Setup

1. Git clone this repository

`[email protected]:jonthomp/react-native-web-expo-lerna-boilerplate.git`

2. Name your packages

Modify the `name` in each of the `package.json` files:

- `./package.json`
- `./packages/common/package.json`
- `./packages/web/package.json`
- `./packages/native/package.json`

3. Rename the `common` dependencies

Update the `@jonthompson/renaweexlebo-common` dependencies to match the name of your common package:

- `./packages/web/package.json`
- `./packages/native/package.json`

4. 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.

5. Bootstrap `lerna`

`npx lerna bootstrap`