We can't wrap the component tree with <StatsigProvider>, as recommended in the docs for initialization.
Thus we can't waitForInitialization, and we get the wrong experiments default values when the app loads, until they return correctly synchronically.
Since react-native-navigation uses multiple roots with
setRoot
and not single app root, like this:We can't wrap the component tree with
<StatsigProvider>
, as recommended in the docs for initialization. Thus we can'twaitForInitialization
, and we get the wrong experiments default values when the app loads, until they return correctly synchronically.https://wix.github.io/react-native-navigation/docs/root/
Is there any way to use
statsig-react-native
withreact-native-navigation
in a way that would allow experiments to always return the right way?we're using "statsig-react-native": "^4.9.2", "react-native": "0.71.3", "react-native-navigation": "7.32.1",