Typescript Template for React Native Web

ezgif com-gif-maker (12)

  • Android + iOS + Web
  • Storybook
  • React Native Paper
  • Custom Webpack
  • Plop file generator
  • React Navigation
  • Jest
  • Prettier
  • Eslint

Install global dependencies - Brew, Node, Cocoapods and Yarn

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install node
sudo gem install cocoapods
npm i -g yarn

Remove git connection to this project and start fresh

rm -rf .git
git init

Install local dependencies - node modules, pods and cleanup

yarn clean

Rename app

npx react-native-rename "New App Name"

Generate components and screens

yarn generate component
yarn generate screen

Run - iOS, Android and Web respectively

yarn ios
yarn android
yarn web

Deploy

yarn build