React Native boilerplate supporting multiple platforms: Android, iOS, macOS, Windows, web, browser extensions, Electron.
The React Native Universal Monorepo is an opinionated approach to supporting multiple platforms with React Native using a Yarn Workspaces monorepo. It utilizes Yarn Workspaces and TypeScript to create a modular React Native project, isolating the JavaScript app code from the platform configurations. This allows for the support of various platforms such as Android, iOS, Windows, macOS, Android TV, tvOS, Web, Web Browser Extensions, Electron, and Next.js. The approach promotes gradual React Native updates and allows for different versions of React Native to be used on each platform.
To get started with the React Native Universal Monorepo, you can either use the provided repository as a boilerplate or create the setup from scratch.
If you choose to use the repository as a boilerplate, follow these steps:
git@github.com:mmazzarolo/react-native-universal-monorepo.gityarn install to install the dependencies.cd react-native-universal-monorepoIf you prefer to create the setup from scratch, refer to the step-by-step tutorial provided in the additional resources section of this documentation.
The React Native Universal Monorepo is an approach that utilizes Yarn Workspaces and TypeScript to support multiple platforms with React Native. It provides a modular project structure that isolates the JavaScript app code from the platform configurations, allowing for easy support of various platforms. The approach promotes gradual React Native updates and supports different versions of React Native on each platform. Users can either use the provided repository as a boilerplate or follow the step-by-step tutorial to create the setup from scratch.