Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Screen flickering in Vuforia Unity app within React Native on iOS

$
0
0

I'm developing AR app in Unity (2019.3.0f6) using Vuforia library (9.0.12). The Unity app is integrated into React Native using https://github.com/asmadsen/react-native-unity-view

The app works works well on Android and iPhone 6s. However when tested on iPhones XS and 11 Pro after switching to Unity view the screen starts to "flicker". There's a black bar quickly appearing and disappearing at the top of the screen making the view change the size all the time which results in the flickering effect: https://youtu.be/1iiep1Bcrg4

This issue doesn't seem to occur the first time the app is launched after installing but is present in every subsequent launch.

I've tried disabling the status bar using <StatusBar hidden={true}/> within React Native. It did stop the flickering on iPhone 11 Pro. On iPhone XS it's still occurring but not immediately after switching to Unity view - it seems to start only after a user interacts with the screen. I've tried adding an offset from the top of the screen but the black bar still appears at the top of the Unity view and not the entire screen so the flickering still occurs: https://youtu.be/-b_sQegyHX4

My suspicion is that it's somehow related to the iPhone notch but I'm not sure which part of the app is causing the problem. Any help is greatly appreciated!


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>