rn-boilerplate-starter
v2.2.0
Published
My custom React Native boilerplate
Downloads
2
Readme
📱 rn-boilerplate-starter
A Modern React Native boilerplate designed to help you kickstart projects with production-ready features, clean architecture, and built-in utilities.
📢 What's New
✨ v2.2.0 – Added InAppBrowser 🎉
- 🌐 Open URLs inside your app without taking users outside the native experience
✨ Features Out of the Box
- ⚡️ React Native 0.81 + React 19
- 🎨 Custom branding scripts (app icon & splash generator)
- 🗂 Organized project structure
- 📦 MobX + Persist store for state management
- 🌍 i18n with react-i18next
- 📡 Tanstack Query (React Query) for data fetching & caching
- ✅ React Hook Form + Yup/Zod validation
- 🖼 SVG + Vector icons support
- 📸 Vision Camera + Image Picker + Compressor
- ⌨️ Keyboard controller for smooth input handling
- 🔔 Toast notifications
- 🛡 Error boundaries & safe fallbacks
- 🔑 Permissions handling (react-native-permissions)
- 🧭 React Navigation (stack + tabs ready)
- 🚀 Scripts for app branding
- 🔧 Pre-configured ESLint + Prettier + TypeScript
- 💬 Modern Chat UI (WhatsApp-like)
- Message bubbles
- Customizable chat header
- File & media attachments support
- Emoji picker integration
- Full-screen image viewer
- 🌐 InAppBrowser integration – open links seamlessly inside the app
🛠 Installation
# Use the template
npx @react-native-community/cli@latest init AwesomeProject --template rn-boilerplate-starter
# Install dependencies
yarn install
# iOS setup
yarn pod-install▶️ Running the App
# Start Metro
yarn start
# Run on Android
yarn android
# Run on iOS
yarn ios🎨 Branding (App Icons & Splash)
Easily add your custom app icon and splash screen:
- Place your images in:
src/assets/branding/logo.png
src/assets/branding/splash.png- Run the branding scripts:
# Generate app icons
yarn appicon
# Generate splash screen
yarn splash- Rebuild your app:
yarn android
# or
yarn ios📂 Project Structure
AwesomeProject/
├── android/ # Native Android project
├── ios/ # Native iOS project
├── src/
│ ├── assets/ # Images, fonts, branding
│ ├── components/ # Reusable UI components
│ ├── hooks/ # Custom React hooks
│ ├── navigation/ # Navigation setup
│ ├── screens/ # App screens
│ ├── store/ # MobX stores
│ ├── utils/ # Helpers & utilities
│ └── ...
├── scripts/ # Branding & other custom scripts
├── package.json
└── README.md📜 Useful Scripts
| Command | Description |
|----------------------|--------------------------------------------------|
| yarn start | Start Metro bundler |
| yarn android | Run app on Android |
| yarn ios | Run app on iOS |
| yarn lint | Run ESLint |
| yarn format | Format code with Prettier |
| yarn clean | Clean Android build cache |
| yarn release | Create Android APK |
| yarn release:bundle| Create Android App Bundle (AAB) |
| yarn pod-install | Install iOS pods |
| yarn appicon | Generate app icons from src/assets/branding/logo.png |
| yarn splash | Generate splash screen from src/assets/branding/splash.png |
✅ Requirements
- Node.js
>=18 - Yarn
- Xcode (for iOS builds)
- Android Studio (for Android builds)
📝 License
MIT © [Areez Mahmood]
