The project demonstrates the possibility of maximum sharing of code between web and the React Native platforms. In fact, only src/browser/Root.js and src/native/Root.js differ, well, also, the code for some components and styles is different.
- Online demo
- Download WebNativeApp.apk
The boilerplate is based on:
The stylization of the web components - Fela. This approach allowed us to apply StyleSheets of the same structure.
Icons are implemented as SVG-components, for React Native apps - react-native-svg. The glyphs are taken from the project react-icons. A convenient tool for searching for the necessary icons - Icon Viewer.
yarn run browserrun web app in development modeyarn run buildbuild web app for productionyarn run deploydeploy to Github pages (configuregit remotebefore this)
yarn run androidinstall React Native Android applicationyarn run nativestart React Native applicationyarn run apkgenerating the release APKyarn run logstarting the Android logger
Projects built using this boilerplate: