{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/10909","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/10909/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/10909/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/10909/events","html_url":"https://github.com/facebook/react-native/issues/10909","id":188953796,"number":10909,"title":"The default clipChildren (clipToBounds) behaviour is different on android and iOS","user":{"login":"littlesome","id":7804648,"avatar_url":"https://avatars3.githubusercontent.com/u/7804648?v=4","gravatar_id":"","url":"https://api.github.com/users/littlesome","html_url":"https://github.com/littlesome","followers_url":"https://api.github.com/users/littlesome/followers","following_url":"https://api.github.com/users/littlesome/following{/other_user}","gists_url":"https://api.github.com/users/littlesome/gists{/gist_id}","starred_url":"https://api.github.com/users/littlesome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littlesome/subscriptions","organizations_url":"https://api.github.com/users/littlesome/orgs","repos_url":"https://api.github.com/users/littlesome/repos","events_url":"https://api.github.com/users/littlesome/events{/privacy}","received_events_url":"https://api.github.com/users/littlesome/received_events","type":"User","site_admin":false},"labels":[{"id":260305031,"url":"https://api.github.com/repos/facebook/react-native/labels/Android","name":"Android","color":"bfe5bf","default":false},{"id":470317962,"url":"https://api.github.com/repos/facebook/react-native/labels/Icebox","name":"Icebox","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-11-13T05:47:40Z","updated_at":"2017-10-27T19:13:34Z","closed_at":"2017-07-20T22:33:19Z","author_association":"NONE","body":"hi, this code shows different result on android and iOS:\r\n\r\n```\r\nexport default class TestClip extends Component {\r\n  render() {\r\n    return (\r\n      <View style={styles.container}>\r\n        <View style={styles.child}/>\r\n      </View>\r\n    );\r\n  }\r\n}\r\n\r\nconst styles = StyleSheet.create({\r\n  container: {\r\n    width: 100,\r\n    height: 100,\r\n    backgroundColor: 'red',\r\n  },\r\n  child: {\r\n    position: 'absolute',\r\n    width: 100,\r\n    height: 100,\r\n    top: 50,\r\n    left: 50,\r\n    backgroundColor: 'green',\r\n  },\r\n});\r\n```\r\n\r\n![wechatimg2](https://cloud.githubusercontent.com/assets/7804648/20243874/6a872cf4-a9a6-11e6-82e7-7974705c7d47.jpeg)\r\n\r\n\r\nI think this is caused by:\r\non android ViewGroup's clipChildren is true by default,\r\non iOS UIView's clipToBounds is NO by default.\r\n\r\nTested adding setClipChildren(true) to the base class ReactViewGroup on android can solve this, but not sure if this can cause performance issue. maybe exporting clipChildren as a property on both platform is better? \r\n\r\n* React Native version: 0.37.0\r\n* Platform: iOS & Android\r\n* Operating System: MacOS\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/340060849","html_url":"https://github.com/facebook/react-native/issues/10909#issuecomment-340060849","issue_url":"https://api.github.com/repos/facebook/react-native/issues/10909","id":340060849,"user":{"login":"hramos","id":165856,"avatar_url":"https://avatars3.githubusercontent.com/u/165856?v=4","gravatar_id":"","url":"https://api.github.com/users/hramos","html_url":"https://github.com/hramos","followers_url":"https://api.github.com/users/hramos/followers","following_url":"https://api.github.com/users/hramos/following{/other_user}","gists_url":"https://api.github.com/users/hramos/gists{/gist_id}","starred_url":"https://api.github.com/users/hramos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hramos/subscriptions","organizations_url":"https://api.github.com/users/hramos/orgs","repos_url":"https://api.github.com/users/hramos/repos","events_url":"https://api.github.com/users/hramos/events{/privacy}","received_events_url":"https://api.github.com/users/hramos/received_events","type":"User","site_admin":false},"created_at":"2017-10-27T19:13:34Z","updated_at":"2017-10-27T19:13:34Z","author_association":"CONTRIBUTOR","body":"Please open a new issue and make sure it follows the template."}}
{"actor":{"display_login":"hramos"}}