Skip to main content

Revenues (React Native)

Environment confirmation​

In React Native template application, please setup environment follow React Native environment setup guide first.

https://docs.timistudio.dev/docs/environment-setup/react-native-environment-setup

Then to confirm all setup is ok, please execute command below to verify.

$ yarn -v
1.22.10

$ node -v
v16.15.0

$ npm -v
8.5.5

If you are using MacOS and work with iOS, please check your XCode is latest version.

$ /usr/bin/xcodebuild -version
Xcode 14.0.1
Build version 14A309

Run in development​

cd <react-native-project-root>
yarn install

If you are using npm without yarn

cd <react-native-project-root>
npm install

Then, start Metro with command below

npx react-native start

Finally start simulator with command below

react-native run-android

If you develop with iOS application

react-native run-ios

File structure​

- android/                                        # ReactNative default android files
- ios/ # ReactNative default iOS files
- src/assets/ # Image asset files
- src/clientApollo/ # Apollo config files
- src/babel.config.js
- src/components/ # App components
- src/constants # Project constant files
- src/hooks/ # React hooks
- src/i18n/ # Internationalization files
- src/lib/
- src/navigation/ # React Native Navigations
- src/screens/ # Project screens
- src/sdk/ # Graphql and codegen files
- src/store/ # Redux files
- src/utils/ # Helper files
- .env.example # Environment config
- app.json # App config
- App.tsx
- AuthContext.tsx
- codegen.yml # Codegen hasura config
- firebase.json # Firebase config
- index.js
- package.json # Node packages
- ThemeContext.tsx

SUPPORT INFORMATION​

Thank for your purchase, feel free to contact with us if you have any trouble when install application.

OUR PRODUCTS:​

Thank you!