Stratejia / react-native-example

React-Native example, using TypeScript, styled-components and expo
https://stratejia.github.io/react-native-example/
MIT License
0 stars 0 forks source link
expo i18n i18next react react-native react-query styled-components

React-Native Example

Build

React-Native example, using TypeScript, styled-components and expo

Read the docs

Made with love by Stratéjia.

Check the project board for what we want to do next.

To contribute, make sure you have read the docs and contribution guide.

Setup

Install dependencies

yarn

Available scripts

Run app

yarn start # Generic start, you can then choose which device
yarn start:web

# Run on emulator
yarn run:android
yarn run:ios

Eject app

Generates native configuration to run the app on a real device.

yarn eject

Build app

yarn build:android
yarn build:ios

Deploy app

You can build on the cloud with EAS.

More documentation is provided in docs/deployment.md.

yarn deploy:<platform>:<profile>
yarn deploy:{all,android,ios}:{dev,prod,preview}

# All devices
yarn deploy:all:dev
yarn deploy:all:preview
yarn deploy:all:prod

# Android
yarn deploy:android:dev
yarn deploy:android:preview
yarn deploy:android:prod

# iOS
yarn deploy:ios:dev
yarn deploy:ios:preview
yarn deploy:ios:prod

Lint app

yarn lint:ls # Run code style for file names
yarn lint:staged # Run code style fix on staged files
yarn lint:fix # Fix code style using eslint

yarn prettier
yarn prettier:write # Fix code style using prettier

Run tests

yarn test
yarn test:watch # If you need to --watch