You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For anyone else who might be experiencing this, I fixed it by creating a single instance of Analytics and passing it to the rest of my components using Context:
In my App.js: const analytics = new Analytics(AppConfig.googleAnalyticsKey); <SocketContext.Provider value={{ analytics : analytics}}> <RootContainer /> </SocketContext.Provider>
In my other components: const RootContainer = props => ( <Context.Consumer> {context => ( <ConnectedRootContainer {...props} analytics={context.analytics} /> )} </Context.Consumer> ); export default RootContainer;
Getting the following error any time I create an event: Error: The WKWebView was invalidated
Env:
"dependencies": {
"expo": "^33.0.0",
"expo-web-browser": "^5.0.3",
"react": "16.8.3",
"react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",
},
The text was updated successfully, but these errors were encountered: