Welcome to the React Native Starter App! This project serves as a template for creating new React Native applications using React Native CLI. It includes essential features like React Navigation, Redux Toolkit, RTK Query, AsyncStorage for authentication persistence, and handling private and public routes.
Before you begin, ensure you have met the following requirements:
- You have installed Node.js and npm (or Yarn).
- You have installed React Native CLI.
- You have set up the development environment for iOS and/or Android as per the official React Native documentation.
Here is an overview of the project structure:
react-native-starter-app
├── android/ # Native Android code
├── ios/ # Native iOS code
├── src/ # Source code for the React Native app
│ ├── assets/ # Asset files (images, fonts, etc.)
│ ├── components/ # Reusable components
│ ├── navigation/ # Navigation configuration
│ ├── screens/ # Screen components
│ ├── store/ # Manage state using Redux Toolkit and API Service using RTK Query
│ ├── utils/ # Styling files
│ └── hooks # Entry point of the application
├── .gitignore # Git ignore file
├── App.js # Entry point for the React Native app
├── app.json # Configuration file for the app
├── babel.config.js # Babel configuration
├── index.js # Entry point for the React Native app
├── metro.config.js # Metro bundler configuration
├── package.json # NPM dependencies and scripts
├── README.md # Project documentation
└── yarn.lock # Yarn lock file
-
Clone the repository:
git clone https://github.com/apelmahmudDev/react-native-starter
-
Navigate to the project directory:
cd react-native-starter
-
Install the dependencies:
If you are using npm:
npm install
If you are using Yarn:
yarn install
-
Navigate to the
ios
directory and install the CocoaPods dependencies:cd ios pod install cd ..
-
Run the app:
npx react-native run-ios
-
Start the Android emulator or connect your Android device.
-
Run the app:
npx react-native run-android
Contributions are always welcome! Please follow the contribution guidelines.
Thank you for using the React Native Starter App! If you have any questions or need further assistance, feel free to open an issue on GitHub. Happy coding!