Code Monkey home page Code Monkey logo

react-native-boiler-plate's Issues

Consider using redux-saga-routines

https://github.com/afitiskin/redux-saga-routines

We are currently dispatching actions directly from sagas and not using action creators. This library abstracts that boilerplate away and you end up with 5 actions for each phase of an async action, ie. trigger, request, success, failure, fulfill. This approach is considered best practice and it is definitely an improvement to our current setup.

Write unit tests for some of the services and sync saga

I have not been able to write tests for the following services (due to a lack of expertise on my part):

  • getDeviceLocation
  • resizeImage
  • showImagePicker
  • UploadFile
  • All database services
  • Sync saga, specifically testing that the eventChannel works

Looking for help here.

Setup continuous integration

Once unit testing is incorporated, it would be great to have these tests run on PR's and builds automatically deployed to beta on merge into master.

Components should be index.js

ie. Currently we have

Example
  index.js
  Example.js

which is unnecessary and should be corrected to:

Example
  index.js

The same concept should be applied to utils to make tests more explicit.

Update TOOLS

Deployment should include firebase env.

Also, the headings aren't formatted consistently.

Better sagas testing

Some of the saga tests are irrelevant for the service that they are testing. ie. without a response from the API. Does that ever happen? Is it even necessary to test that case?

Add data shapes to initialState

Serves as self-documentation, ie.

network: null

is far less descriptive than

network: {
  type: null,
  effectiveType: null
}

Update docs

Navigating the docs is tedious. Add TOCs.

E2E testing

Detox seems to be the most mature, easier to use library out there right now.

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.