This repository contains a React Native template that includes various functionalities like dark mode and multilingual support. Follow the instructions below to set up and run the project.
The following libraries are included in this template:
@react-navigation/bottom-tabs
@react-navigation/native
@react-navigation/native-stack
react-native-screens
@reduxjs/toolkit
react-redux
redux
axios
i18next
react-i18next
react-native-localize
react-native-paper
react-native-vector-icons
react-native-safe-area-context
- Dark Mode: The template supports dark mode, allowing users to switch between light and dark themes.
- Multilingual Support: The template supports multiple languages, making it easier to internationalize the app.
-
Clone the repository:
git clone <repository_url>
-
Navigate to the project directory:
cd template
-
Remove the existing
.git
folder:rm -rf .git
-
Rename the app:
npx react-native-rename <new_app_name>
-
Install dependencies:
npm install
-
Run the app on Android:
npx react-native run-android
npm run android
: Run the app on an Android device/emulator.npm run ios
: Run the app on an iOS device/simulator.npm run lint
: Lint the project using ESLint.npm run start
: Start the React Native bundler.npm run test
: Run the tests using Jest.
Ensure you have the following prerequisites installed on your machine:
- Node.js (>=18)
- React Native CLI
- Android Studio (for Android development)
- Xcode (for iOS development)
For more information on setting up your development environment, refer to the official React Native documentation.