react-native unity界面推出新界面UI展示偶现不完整的bug

解决思路:

1.查找unity与react相关问题

2.没有直接搜索到该问题,但是搜索到react-native-unity-view的github控件,猜测里面的issue会有人碰到此类问题,因为这个组件有299个star,然后issue的数量为63个总共三页的issue;

3.搜索issue 类似的关键字不好找,就干脆直接每个issue过一次 终于找打一个react-navigation相关的UI异常;

issue地址:https://github.com/f111fei/react-native-unity-view/issues/82

解决方案详情:

What‘s your UnityView style? If UnityView is full-screen in Android, there will be some rendering problems.

Try change UnityView style.

如上所见修改unityView样式如上即可解决该问题;值得注意的是issue里面有描述为:

Yet stranger, if I enable the Inspector in the debug menu, everything starts to work even without calling Alert.alert() in render(). I guess the overlaying inspector gui forces the content to be redrawn on each frame.

后期值得关注打开Inspector 为何会异常消失。

你可能感兴趣的:(react-native unity界面推出新界面UI展示偶现不完整的bug)