My favorite React Native template for a quick start with TypeScript.
Dependencies
Show features
🇻🇳 | 🔰 Status |
---|---|
Navigation | ✅ |
Login - Sign up | ✅ |
Authenticaion flows | ✅ |
Theme | ✅ |
Localization | ✅ |
Custom fonts | ✅ |
Localization | ✅ |
Show instructions
-
iOS
Add GoogleService-Info.plist for each environment
ios/<project>/Firebase
-
Android
Add google-service.json for each environment
android/app/firebase
Show instructions
- Structure
- User
- Conversations
- Firestore rules
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /users/{user_id} {
allow read: if request.auth != null;
allow write: if request.auth.uid == user_id;
match /conversations/{document=**} {
allow read, write: if request.auth != null;
}
}
match /conversations/{conversation_id} {
allow read: if request.auth != null && request.auth.uid in get(/databases/$(database)/documents/conversations/$(conversation_id)).data.userIds;
allow write: if request.auth != null && request.auth.uid in get(/databases/$(database)/documents/conversations/$(conversation_id)).data.userIds;
match /messages/{document=**} {
allow read, write: if request.auth != null && request.auth.uid in get(/databases/$(database)/documents/conversations/$(conversation_id)).data.userIds;
}
}
}
}
Show instructions
- Get iconmoon font at https://icomoon.io/app/#/select
- Select icons you need for your project
yarn icons
- Update font on Android + iOS
npx react-native link
Show instructions
- Add custom fonts you wish to use to
src/theme/fonts
- Update font on Android + iOS
npx react-native link
- Update your font family at
src/theme/fonts/index.tsx
Unmuted and enjoy 🤣🤣🤣 🇻🇳🇻🇳🇻🇳
storybook-demo.mp4
Show instructions
1. Storybook document - https://storybook.js.org/tutorials/intro-to-storybook/react-native/en/get-started/- iOS
yarn istorybook
- Android
yarn astorybook
- Use Storybook server (Optional)
yarn storybook
Then reload your simulator or device
Show instructions
Thuong Nguyen - @mthuong - [email protected]