react native第三方组件问题

前端之家收集整理的这篇文章主要介绍了react native第三方组件问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

组件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 youturn 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相关文章