组件 react-native-router-flux 中的tabbar 在安卓机器上反应速度非常慢,
已有issue提问: https://github.com/aksonov/react-native-router-flux/issues/199
Extremely slow on android #199
看似原因:
For future reference make sure to not have console.log anywhere in the code, whether it is your redux middleware or in the debug for this library
实则:
turn off "JS Dev Mode (已解决问题,只需一步)
You will want to make sure that you turn off "JS Dev Mode," or else it
will run painfully slow on device.
After running "react-native run-android" you should "shake" your device
to bring up the menu. Select "Dev Settings" then uncheck "JS Dev Mode."
After that run "react-native run-android" again and it should be more
performant, at least I hope for you :)
本文介绍了解决React Native中react-native-router-flux组件TabBar在安卓设备上响应缓慢的问题。通过关闭JS Dev Mode可以显著提升应用性能。
3095

被折叠的 条评论
为什么被折叠?



