Every 1% decrease in startup time correlates with 0.27% increase in visitation.
More than 35% of users use > 2 years old device.
Intl support- alternative polyfills
Proxy - use hermes-engine
Remove other es6 features
Use react-native-bundle-visualizer
and remove unused bundles
Faster startup time
export BUNDLE_COMMAND="ram-bundle"
project.ext.react = [ bundleCommand: "ram-bundle", ]
require
can be used in runtime now!
render()
shouldComponentUpdate()
- n.b., it has drawbacks in software engeering however
Identify wasted renders
Use PureComponent
Make data immutable
Avoid passing new reference of the same old data
Use local content first before going to internet.
Use loading indicator (skeleton or spinning animation)
Use native driver to avoid the bridge
Device logs
Crash reporter inspecting
Network inspecting
App local database
Inspecting device preferences
Inspecting cached images
flipper-plugin-react-native-performance
render() shaming
callstack, performance, react native
This information is presented at Oct 20, 2020, check it out from React Native EU Youtube Channel