Overview
The React Native Web Starter is a repo that aims to provide an easy starting point for developers looking to create fully cross-platform applications for both web and mobile. It combines React Native Web for web development and Expo for mobile development. The repo includes different branches that represent various starting points, each with its own set of features and capabilities. The project is bootstrapped with Create React App, providing hot reloading for web development. It is also integrated with Create React Native App, allowing the project to be run on iOS and Android using the Expo packager.
Features
- Minimal Boilerplate: The master branch provides the most minimal possible boilerplate, allowing developers to start from a clean slate.
- Redux Support: The redux branch implements redux reducers, actions, store, and connection, along with an example of how to use them.
- Platform-Agnostic Navigation: The navigation-react-router branch utilizes react-router-dom, react-router-native, and react-router-navigation to offer a solution for platform-agnostic navigation, including a native look and feel on phones.
- TypeScript Integration: The typescript branch uses the TypeScript compiler, with the ability to track file changes and compile on the fly for stronger typed React Native Web code.
Installation
- Clone the branch of the starting point you want.
- Rename the project, including the package.json file.
- Remove the reference to the repo by running
git remote rm origin. - Install the dependencies by running
yarn. - You’re good to go!
Summary
The React Native Web Starter is a valuable resource for developers looking to create cross-platform applications using React Native Web and Expo. With its different branches and starting points, it offers flexibility and customization options. Whether minimalistic starting point, redux integration, platform-agnostic navigation, or TypeScript support is required, this repo provides reliable solutions. The installation process is straightforward, making it accessible for developers to get started quickly.