r/reactnative • u/richpeopleshit • Apr 18 '20
The React Native 10 commandments
Thou shalt never upgrade a react native version without at least having 72 hours of dedicated time.
When you can't figure out what's wrong then delete node_modules, delete Pods, delete DerivedData, delete cache, and rebuild everything.
Something running perfectly on ios has a 50% chance of being laggy on android.
Every library added to your project will break your build at some point in the future.
Never install a library that hasn't been updated in the last
63 months.The answer to your question is in a closed github issue.
Don't be afraid to get into the native code and make changes.
Native code is a frightening place, only make changes as a last resort.
If you close your eyes before running a build command it has a 25% higher chance of building successfully.
All changes made to the native build systems will be forgotten until it breaks your build at a later date.
12
u/Tayk5 Apr 18 '20
Oh man, this makes me concerned about choosing to learn RN over Flutter. Are there any Flutter devs here willing to share your Flutter experiences versus RN?