This is a React Native boilerplate for building cross-platform mobile applications with essential tools and libraries for efficient development.
- React Native (v0.69.5) - Core framework for building native mobile apps
- React (v18.0.0) - JavaScript library for building user interfaces
- Redux Toolkit - State management
- React Redux - Redux bindings for React
- Redux Persist - Persist Redux state across app reloads
- React Navigation - Navigation solutions including bottom tabs, drawers, and stacks
- React Native Paper - Material Design components
- Formik & Yup - Form handling and validation
- i18next & react-i18next - Internationalization support
- React Native Bootsplash - Manage app splash screen
- React Native Gesture Handler & Reanimated - Gesture handling and animations
- React Native Elements - UI components
- React Native Vector Icons - Customizable icons
- React Native Responsive Screen - Responsive layouts
- React Native Snackbar - In-app notifications
- Async Storage - Persistent storage
Ensure you have the following installed:
- Node.js (v16 or higher)
- npm (v9.1.3) or yarn
- React Native CLI
- Android Studio / Xcode for running on devices or emulators
-
Clone the repository:
git clone https://github.com/your-username/BoilerPlate.git cd BoilerPlate -
Install dependencies:
npm install
-
Run the application:
-
For Android:
npm run android
-
For iOS (Mac only):
npm run ios
-
Start Metro Bundler manually if needed:
npm run start
Ensure you configure necessary environment variables and platform-specific permissions before running the app.
Run the tests using Jest:
npm run testTo lint and format the codebase:
npm run lintLint-staged and Prettier are configured to format code automatically on commits.
This boilerplate includes i18next and react-i18next for localization. Update translations in the src/locales directory.
- react-native-global-font - Custom global fonts
- react-native-restart - Restart the app programmatically
- react-native-confirmation-code-field - Code input fields
- Use Redux Toolkit for state management
- Structure components into reusable, modular files
- Follow ESLint rules and Prettier formatting
-
Metro bundler stuck? Run:
npm start --reset-cache
-
Android build fails? Ensure Android Studio is installed and properly configured.
Contributions are welcome! Please fork the repository, create a feature branch, and submit a pull request.
MIT License
Happy Coding! 🚀