react-directory-structure
An opinionated React Native / React boilerplate for starting new Project.
- React Native App directory structure with some basic boilerplate including some reusable components and context setup.
- Use this to start new React Native project and similar pattern can also be followed in React Web Projects.
- Browse through the src/ folder
Features
- Context API
- Components / Screens
- Hooks
- API Services Setup with apisauce
- Config
- Library Helpful functions
- Navigation
- Assets and Themes
- Global error handling with notification
- Typescript
- Reactotron
- AsyncStorage
Installation with React Native
-
copy src folder and App.tsx in your React Native app.
-
Update index.js with
import 'react-native-gesture-handler';
import App from './src/Screens/App';
-
Native Libs setup Follow instructions in:
-
https://github.com.cnpmjs.org/zoontek/react-native-bootsplash
-
Add logo.png in assets/images/ or remove from SignInScreen
-
Edit info.plist file and add fonts
<key>UIAppFonts</key>
<array>
<string>AntDesign.ttf</string>
<string>Entypo.ttf</string>
<string>EvilIcons.ttf</string>
<string>Feather.ttf</string>
<string>FontAwesome.ttf</string>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
<string>SimpleLineIcons.ttf</string>
<string>Octicons.ttf</string>
<string>Zocial.ttf</string>
</array>
pod install
Recommended and Required Dependencies:
Find all dependencies in package.json file.
yarn add yup formik qs react-native-paper apisauce @react-native-community/masked-view react-navigation-tabs react-native-safe-area-context react-native-vector-icons react-navigation-animated-switch react-native-reanimated react-native-bootsplash lodash @react-native-community/async-storage react-native-device-info react-native-dropdownalert react-native-gesture-handler react-native-keyboard-aware-scroll-view react-native-modal react-native-screens react-native-size-matters react-navigation react-navigation-hooks react-navigation-stack
yarn add -D @types/lodash reactotron-react-native @types/react-native-vector-icons
cd ios && pod install && cd ../
App Icons Generators
- iOS: https://appicon.co/ OR Icon Set Creator mac app
- Android: https://jgilfelt.github.io/AndroidAssetStudio/index.html
Semver
https://github.com/zmnv/react-native-semver-update#readme
Inspired by Ignite typescript boilerplate. https://github.com/aerian-studios/ignite-typescript-boilerplate

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
