{"action":"created","issue":{"url":"https://api.github.com/repos/expo/expo/issues/2762","repository_url":"https://api.github.com/repos/expo/expo","labels_url":"https://api.github.com/repos/expo/expo/issues/2762/labels{/name}","comments_url":"https://api.github.com/repos/expo/expo/issues/2762/comments","events_url":"https://api.github.com/repos/expo/expo/issues/2762/events","html_url":"https://github.com/expo/expo/issues/2762","id":382943507,"node_id":"MDU6SXNzdWUzODI5NDM1MDc=","number":2762,"title":"Webview WebKit Live Reload Multiple Instances Crashes Expo App During Development ","user":{"login":"deanmraz","id":2848187,"node_id":"MDQ6VXNlcjI4NDgxODc=","avatar_url":"https://avatars2.githubusercontent.com/u/2848187?v=4","gravatar_id":"","url":"https://api.github.com/users/deanmraz","html_url":"https://github.com/deanmraz","followers_url":"https://api.github.com/users/deanmraz/followers","following_url":"https://api.github.com/users/deanmraz/following{/other_user}","gists_url":"https://api.github.com/users/deanmraz/gists{/gist_id}","starred_url":"https://api.github.com/users/deanmraz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deanmraz/subscriptions","organizations_url":"https://api.github.com/users/deanmraz/orgs","repos_url":"https://api.github.com/users/deanmraz/repos","events_url":"https://api.github.com/users/deanmraz/events{/privacy}","received_events_url":"https://api.github.com/users/deanmraz/received_events","type":"User","site_admin":false},"labels":[{"id":796417703,"node_id":"MDU6TGFiZWw3OTY0MTc3MDM=","url":"https://api.github.com/repos/expo/expo/labels/project:%20upstream","name":"project: upstream","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-21T03:47:07Z","updated_at":"2018-12-01T00:44:46Z","closed_at":null,"author_association":"NONE","body":"### Environment\r\n- iOS \r\n- Expo v31 \r\n\r\n### Steps to Reproduce\r\n\r\n```js\r\nimport React from 'react';\r\nimport { StyleSheet, Text, View, WebView } from 'react-native';\r\n\r\nexport default class App extends React.Component {\r\n  render() {\r\n    return (\r\n      <WebView\r\n        useWebKit={true}\r\n        source={{uri: 'https://docs.expo.io/versions/v31.0.0/react-native/webview'}}\r\n        style={{marginTop: 20}}\r\n      />\r\n    );\r\n  }\r\n}\r\n\r\nconst styles = StyleSheet.create({\r\n  container: {\r\n    flex: 1,\r\n    backgroundColor: '#fff',\r\n    alignItems: 'center',\r\n    justifyContent: 'center',\r\n  },\r\n});\r\n```\r\n[Example Project Repo](https://github.com/deanmraz/react-native-learning/tree/hotfix/webview-reload)\r\n\r\n1. expo start\r\n2. run ios simulator \r\n3. open safari > Develop > Simulator - <Your Device/Version>\r\n4. Observe the available webviews\r\n5. Reload command + R\r\n6. Observe more webviews \r\n7. Repeat until crash \r\n\r\n### Expected Behavior\r\n- If you remove the useWebkit={true} option it does not generate multiple instances of the webview. This is expected behavior \r\n\r\n### Actual Behavior\r\n- Multiple instances of the webview is heavy and ultimately freezes the expo app to the point where you cannot interact with the app. \r\n\r\n![](http://prodtype.imgix.net/github/Screenshot%202018-11-20%2019.26.00.png?auto=compress)\r\n\r\n### Reproducible Demo\r\n- https://github.com/deanmraz/react-native-learning/tree/hotfix/webview-reload\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/expo/expo/issues/comments/443382348","html_url":"https://github.com/expo/expo/issues/2762#issuecomment-443382348","issue_url":"https://api.github.com/repos/expo/expo/issues/2762","id":443382348,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzM4MjM0OA==","user":{"login":"deanmraz","id":2848187,"node_id":"MDQ6VXNlcjI4NDgxODc=","avatar_url":"https://avatars2.githubusercontent.com/u/2848187?v=4","gravatar_id":"","url":"https://api.github.com/users/deanmraz","html_url":"https://github.com/deanmraz","followers_url":"https://api.github.com/users/deanmraz/followers","following_url":"https://api.github.com/users/deanmraz/following{/other_user}","gists_url":"https://api.github.com/users/deanmraz/gists{/gist_id}","starred_url":"https://api.github.com/users/deanmraz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deanmraz/subscriptions","organizations_url":"https://api.github.com/users/deanmraz/orgs","repos_url":"https://api.github.com/users/deanmraz/repos","events_url":"https://api.github.com/users/deanmraz/events{/privacy}","received_events_url":"https://api.github.com/users/deanmraz/received_events","type":"User","site_admin":false},"created_at":"2018-12-01T00:44:46Z","updated_at":"2018-12-01T00:44:46Z","author_association":"NONE","body":"@esamelson thanks, I will recreate the issue with a plain react native project and see if its still an issue. "}}
{"actor":{"display_login":"deanmraz"}}