auxstudio / react-native-boiler-plate Goto Github PK
View Code? Open in Web Editor NEWA react-native, redux, redux-saga and firebase project.
License: MIT License
A react-native, redux, redux-saga and firebase project.
License: MIT License
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.
I have not been able to write tests for the following services (due to a lack of expertise on my part):
Looking for help here.
Character restriction shows blank value / TOTAL.
Not sure if it's being maintained.
Consider finding a replacement, forking or waiting for fork.
Causing iOS build error with Firestore.
Remove current environment settings for the db when this is done.
Utils.createError should be utils.app.createError.
Missing Slack webhook url should not call post.
Also, add functionality to disable error logging to the db.
Apparently a performance improvement since it's native.
Write tests for the utils and anything else that is testable.
At the moment we have a mix between the above and object imports. Let's stick to the above for consistency.
https://rnfirebase.io/docs/master/notifications/introduction
Messaging is now only handling data-only notifications. We need both notifications and data-only notifications.
Database and NetworkHandlers will need to be updated.
Use Sentry (or flavour of or custom server) and some redux Middleware.
functionName = () => {}
is now moving to the stable ES5 way of binding class methods
functionName() {}
because testing is easier, it is more performant and it is self documenting.
They are bad-ass.
This:
import RemoteImage from '../../../components/RemoteImage';
Changes to this:
import RemoteImage from 'components/RemoteImage';
How lovely.
https://github.com/tleunen/babel-plugin-module-resolver
https://medium.com/@davidjwoody/how-to-use-absolute-paths-in-react-native-6b06ae3f65d1
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.
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.
See sync saga.
Deployment should include firebase env.
Also, the headings aren't formatted consistently.
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?
This will decouple the error logic.
Will need to create an ErrorHandler and remove that logic from SystemMessageHandler.
Serves as self-documentation, ie.
network: null
is far less descriptive than
network: {
type: null,
effectiveType: null
}
import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings(['Remote debugger']);
Navigating the docs is tedious. Add TOCs.
E.g. moveFile, deleteFile.
Create a helpers file that links to styleConstants to do this.
Will save about 3 hours of setup.
It's done really well here.
Has new destructuring required prop.
Detox seems to be the most mature, easier to use library out there right now.
A few unneeded files (travis.yml etc) were not removed.
Handlers, components etc.
Would really appreciate some help mocking react-native-firebase.
https://stackoverflow.com/questions/50853124/how-to-mock-stub-react-native-firebase
ADD_PENDING_TRANSACTION
REMOVE_PENDING_TRANSACTION
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.