Giter Club home page Giter Club logo

rn-personal-boilerplate's Introduction

Personal RN boilerplate

1- Make sure to create a local.properties inside /android directory

2- Then write this sdk.dir = /Users/<username>/Library/Android/sdk (replace <username> with your username)

if you run somehow through this error: facebook/react-native#7308

Run this cmd: killall -9 node to kill any node port running.

If you run somehow through this error: unable to load script from assets index.android.bundle

Run this cmd: react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

Don't hesitate to get in touch in case you ran in issues not mentioned above

Features

  • Stateless functional components using Recompose
  • Screens setup with react-navigation
  • Redux store setup and configured
  • Nice file structure
  • Eslint
  • Client side error handling with formik and validation with yup
  • Server side errors show up easily, you need to pass the right errors object from the backend
  • Common used elements styled and ready to use // More to be added
  • i18n with react-intl

and more....

Libraries used

"axios": "^0.18.0",
"eslint": "^5.6.0",
"formik": "^1.3.0",
"global": "^4.3.2",
"react": "16.5.0",
"react-native": "0.57.1",
"react-navigation": "^2.16.0",
"react-redux": "^5.0.7",
"recompose": "^0.30.0",
"redux": "^4.0.0",
"redux-thunk": "^2.3.0",
"styled-components": "^4.0.0-beta.8-unpure",
"yup": "^0.26.6",
"react-intl": "^2.7.0",
"react-native-swiper": "^1.5.13",

Todo

  • Setup actions/reducer boilerplate for auth
  • Write an article connecting a rest api with this boilerplate
  • Apply redux-thunk
  • Prepare more most common used elements (checkbox, radio button...)
  • Add good looking loaders
  • Add server side errors

rn-personal-boilerplate's People

Contributors

dependabot[bot] avatar smakosh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mouhcinefd

rn-personal-boilerplate's Issues

Refactoring

To Do

  • upgrade to 0.62.1
  • upgrade React Navigation
  • upgrade all libraries used
  • restructure files

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.