The Wayback Machine - https://web.archive.org/web/20201002190821/https://github.com/gamingumar/react-directory-structure
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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';
<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

Semver

https://github.com/zmnv/react-native-semver-update#readme

Inspired by Ignite typescript boilerplate. https://github.com/aerian-studios/ignite-typescript-boilerplate

About

React App directory structure turned into React Native Starter Kit. API Client, Helpers and Context Setup.

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.