加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

react native第三方组件问题

发布时间:2020-12-15 05:16:40 所属栏目:百科 来源:网络整理
导读:组件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.

组件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 :)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读