Open robertcreaner opened 5 years ago
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}}>
</SocketContext.Provider>`
In my other components: `const RootContainer = props => (
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", },