MovieDB-ReactNative
login form and movies screen
React Native Template
This project aims to be a strong foundation for react-native applications. It provides a clear and organized structure, core dependencies, and boilerplate to jumpstart development.
Prerequisites
- Node.js > 12 and npm (Recommended: Use nvm)
- Watchman
- Xcode 12
- Cocoapods 1.10.1
- JDK > 11
- Android Studio and Android SDK
Base dependencies
- axios for networking.
- prop-types to type-check our components exposed properties.
- react-native-config to manage envionments.
- react-navigation navigation library.
- react-native-localization for string localization.
- react-native-mmkv-storage as storage solution.
- redux for state management.
- redux-persist as persistance layer.
- redux-thunk to dispatch asynchronous actions.
- jest and react-native-testing-library for testing.
Installation
- Go to your project's root folder and run
npm install
. - If you are using Xcode 12.5 or higher got to /ios and execute
pod install --
repo-update` - Run
npm run ios
ornpm run android
to start your application!
(Using yarn: yarn ios
or yarn android
)
Note: Please read the Setup environments section that is below in this file for more information about the execution scripts.
Setup environments
Using scripts from console
DEV: yarn ios
or yarn android
STG: yarn ios:staging
or yarn android:staging
PROD: yarn ios:prod
o yarn android:prod
Also, you can use npm following the same rule as before: npm run ios:staging
Modify the environment variables files in root folder (.env.development
, .env.production
and .env.staging
)