This repository will help you to start your fresh new React Native project with Expo using the best practices to accelerate you coding.
- Ready to build with Expo.
- NativeBase integration. Best UI Kit for React Native.
- Domain-Driven file structure.
- Best configurations for VSCode.
- Module Resolver for fixing Relative Paths.
- Best Linting configurations and complements.
- Ready to work with Prettier, Eslint integrations and best practices.
- Redux, Redux-thunk and Redux-persist for manage state.
Clone or download the repository and install the dependencies
# Clone the repository
git clone --depth 1 https://github.com/boadude/React-Native-Expo-Starter.git
# Go to React-Native-Expo-Starter directory
cd React-Native-Expo-Starter
# Install dependecies
npm install
# Start the project with Expo
npm start
Now, open Expo app on your Android or iPhone phone and scan the QR Code or go to the exp url. If you want you can start a device simulator, just follow the instructions in your console.
To ensure our work, we use Visual Studio Code and a few addons that will make our work much cleaner and professional.
Just go to Visual Studio Code webpage and download. Follow the installation instruction and that its.
To install the add-ons necessary to work faster and cleaner we must go to the extension icon on the left panel and search all the add-on and installed.
- Auto Close Tag : Automatically close tags.
- Code Spell Checker : Spell checker that works well with camelCase code.
- Eslint : Integrates ESLint into VSCode, to check in coding time the mistakes.
- Path Intellisense : For autocompletation filenames.
- Prettier : Best code formater ever.
- Material Icon Theme : Icons for folders and files.
- NPM : For validations of installed modules.
The repository use the Domain-Driven File Structure.
react-native-expo-starter/
├──.expo/ * configuration for expo
├──.vscode/ * configuration for vscode ide
│ └──settings.json * configurations for vscode and path intellisense
├──docs/ * images for the repository (you can delete this folder)
├──src/ * source files
│ │
│ ├──app/ * app configurations
│ │ ├──reducers.js * configurations for the reducers
│ │ └──store.js * configurations for the store
│ │
│ ├──assets/ * static assets
│ │ ├──fonts/ * customs fonts
│ │ ├──images/ * images
│ │ └──native-base-theme/ * nativebase theme for custom configurations
│ │
│ ├──common/ * common components
│ │
│ ├──components/ * components source
│ │ ├──dashboard/ * dashboard component
│ │ ├──loading/ * loading component
│ │ └──login/ * login component
│ │ ├──Login.js * login container
│ │ ├──LoginActions.js * login actions
│ │ ├──LoginReducers.js * login reducers
│ │ └──LoginStyles.js * login styles
│ │
│ └──constants/ * constants and customs
│ ├──constants.js * global constants
│ └──errors.js * custom errors messages
│
│
├──.babelrc * configuration for module-resolver and babel
├──.editorconfig * configuration for vscode
├──.eslintrc * configuration for eslint
├──.flowconfig * configuration for flow
├──App.js * initial configuration for start the project
├──app.json * configuration por expo
├──jsconfig.json * configuration for compiler
└──package.json * what npm uses to manage its dependencies
Contact me anytime if you need help
The MIT License (MIT)
Copyright (c) 2018 Miguel Meza, CIMADent
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.