This project has the purpose to show a basic structure for a common React Native Application. It also makes use of React Hooks and the new version of React Navigation (v5).
For persistency, Context API is being used over Redux, since it does not need any third party libraries and also makes it much simpler when using simple stores.
-
Android
Windows, Mac and Linux platforms are supported. The Android SDK is required to build and debug the app, other tools can be downloaded using the Android SDK Manager.
-
iOS
Xcode and CocoaPods
To run the app locally, the following tools are required:
- NodeJS LTS version (Recommended) - To download the dependencies of the app via npm.Make sure it is Node 8.3 or newer.
- Java SE Development Kit 11 - Required by the Android tools.
- Android SDK - You can download the Android Studio, but only the sdk tools are required. However, if you don't have one, you can select the AVS tools in the installation process to install an android emulator.
- Xcode ]
Once you have cloned the project, go to the app
folder and then npm install
to install all the dependencies
After, you can start the app in iOS by entering npm run ios
. To run with Android you must have a connected device or emualtor opened, then enter npm run android
Runs your app in development mode.
Sometimes you may need to reset or clear the React Native packager's cache. To do so, you can pass the --reset-cache
flag to the start script:
npm start --reset-cache
# or
yarn start --reset-cache
- Native Base UI Kit which is well supported and also let's the user to customize as much as possible some of the basic RN components
- React Navigation Easy to use and also highly customizable.