Skip to content

pcmunoz/react-multi-platform

Repository files navigation

react-multi-platform

React, React Native, Shared

Install and Build

  1. yarn && lerna --scope=@root/shared run build

  2. Run web: lerna --scope=web run start

  3. Run mobile: lerna --scope=mobile run start and open another terminal, lerna --scope=mobile run android or ios

Resources:

React

https://blog.devgenius.io/eslint-prettier-typescript-and-react-in-2022-e5021ebca2b1

https://stackoverflow.com/questions/44717164/unable-to-import-svg-files-in-typescript

Lerna

https://dushyant37.medium.com/how-to-use-lerna-with-react-native-1eaa79b5d8ec

React Native

https://reactnative.dev/docs/environment-setup

Shared

https://itnext.io/step-by-step-building-and-publishing-an-npm-typescript-package-44fe7164964c

Electron

https://www.electronforge.io/templates/typescript-+-webpack-template