When I started to build Apps using this approach I had to understand the limitations and that, although, the React Native ecosystem is big I cannot use all the libraries if I wanted to run my app on Web, Native & Desktop with a single codebase.
There are different libraries to do the same job and it’s important to choose the one that fits better and is cross-platform.
React Native for Web makes it possible to run React Native components and APIs on the web using React DOM.
It was included in Expo SDK 33, so one less thing to worry about.
React Navigation adss routing and navigation to your React Native apps.
Easy Peasy is an abstraction of Redux, providing a reimagined API that focuses on developer experience.
React Native Async Storage is an asynchronous, persistent, key-value storage system for React Native.
Although, I use it in most of my Apps, sometimes I prefer to use my own components. Anyway, if you prefer to start with a collection of customizable and production-ready Cross-Platform components for React Native, I highly recommend to you add to your project with:
$ expo install react-native-paper
You can download and run the repository from my Github account: jferrer/expo-boilerplate
$ git clone https://github.com/jferrer/expo-boilerplate.git $ cd expo-boilerplate $ yarn install
$ expo start
$ yarn expo-electron start
Inside, you’ll see the basic configuration and screens to start an App: