Disclaimer : this repo is only a way to start a new react-native (expo) app. A lot of other config are possible. This is always a work in progress i will keep updating it.
After creating multiple apps I decided to create this react-native starter template to avoid starting from scratch each time. This repo contains all the features i need in (almost) every projects.
git clone https://github.com/dpnick/react-native-starter.git your-app-namecd your-app-namenpm i- run it either on android
npm run androidor iOSnpm run ios(checkpackage.jsonfor all scripts)
Don't forget to disable commented lines about environments files in
.gitignore
- typescript
- multiple environments variables (simple custom script see
set-environments.jsand package.json) - enable hermes on both android and iOS
- expo bare-workflow (more on this here https://docs.expo.dev/introduction/managed-vs-bare/)
- styled components / styled system
- theming (light and dark) + switch feature + persistance
- translation (based on user preferences) + switch feature + persistance
- navigation (https://reactnavigation.org/docs/getting-started)
- AsyncStorage for persistane (will move to react-native-mmkv asap)
I'm currently thinking about how to improve it without making it too opinionated. Maybe :
- Implement Splash screen
- Move from AsyncStorage to react-native-mmkv
- Toast component to give feedback to the user (like react-native-styled-toast or custom)
- Auth system (like firebase)
If you have any idea feel free.
If you think something is missing, feel free to send me a message.
If you like it, please consider leaving a star it means a lot to me :)