{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/5447","labels_url":"https://api.github.com/repos/facebook/react-native/issues/5447/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/5447/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/5447/events","html_url":"https://github.com/facebook/react-native/issues/5447","id":127824066,"number":5447,"title":"Webview does not have momentum scrolling on iPhone","user":{"login":"aflanagan","id":702589,"avatar_url":"https://avatars.githubusercontent.com/u/702589?v=3","gravatar_id":"","url":"https://api.github.com/users/aflanagan","html_url":"https://github.com/aflanagan","followers_url":"https://api.github.com/users/aflanagan/followers","following_url":"https://api.github.com/users/aflanagan/following{/other_user}","gists_url":"https://api.github.com/users/aflanagan/gists{/gist_id}","starred_url":"https://api.github.com/users/aflanagan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aflanagan/subscriptions","organizations_url":"https://api.github.com/users/aflanagan/orgs","repos_url":"https://api.github.com/users/aflanagan/repos","events_url":"https://api.github.com/users/aflanagan/events{/privacy}","received_events_url":"https://api.github.com/users/aflanagan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-21T01:22:47Z","updated_at":"2016-01-21T01:48:03Z","closed_at":null,"body":"When scrolling a webview the scrolling stops immediately after removing your finger from the screen, as opposed to the normal \"momentum\" style scrolling. It works fine on an iPad, but does not work on an iPhone.\r\n\r\nReact Native 0.17.0\r\niOS Versions Tested: 8.4, 9.1, 9.2\r\nDevices Tested: iPhone 6, iPhone 6s, iPad Retina, iPad Mini\r\n\r\n```js\r\nimport React, { WebView } from 'react-native'\r\n\r\nclass App extends React.Component {\r\n\r\n  render() {\r\n    return (\r\n        <WebView\r\n          url={'https://news.ycombinator.com'}\r\n          />\r\n    )\r\n  }\r\n}\r\nReact.AppRegistry.registerComponent('App', () => App);\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/173425344","html_url":"https://github.com/facebook/react-native/issues/5447#issuecomment-173425344","issue_url":"https://api.github.com/repos/facebook/react-native/issues/5447","id":173425344,"user":{"login":"aflanagan","id":702589,"avatar_url":"https://avatars.githubusercontent.com/u/702589?v=3","gravatar_id":"","url":"https://api.github.com/users/aflanagan","html_url":"https://github.com/aflanagan","followers_url":"https://api.github.com/users/aflanagan/followers","following_url":"https://api.github.com/users/aflanagan/following{/other_user}","gists_url":"https://api.github.com/users/aflanagan/gists{/gist_id}","starred_url":"https://api.github.com/users/aflanagan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aflanagan/subscriptions","organizations_url":"https://api.github.com/users/aflanagan/orgs","repos_url":"https://api.github.com/users/aflanagan/repos","events_url":"https://api.github.com/users/aflanagan/events{/privacy}","received_events_url":"https://api.github.com/users/aflanagan/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T01:48:03Z","updated_at":"2016-01-21T01:48:03Z","body":"After looking at the implementation of RCTWebView I added\r\n```\r\n _webView.scrollView.decelerationRate = UIScrollViewDecelerationRateNormal;\r\n```\r\n\r\nto \r\n\r\n```\r\n- (instancetype)initWithFrame:(CGRect)frame\r\n{\r\n  if ((self = [super initWithFrame:frame])) {\r\n    super.backgroundColor = [UIColor clearColor];\r\n    _automaticallyAdjustContentInsets = YES;\r\n    _contentInset = UIEdgeInsetsZero;\r\n    _webView = [[UIWebView alloc] initWithFrame:self.bounds];\r\n    _webView.delegate = self;\r\n    [self addSubview:_webView];\r\n  }\r\n  _webView.scrollView.decelerationRate = UIScrollViewDecelerationRateNormal;\r\n  return self;\r\n}\r\n```\r\n\r\nthat fixes the problem, but i'm unsure of the ramifications of this change. Happy to submit a PR if y'all think this is the correct solution."}}