{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/3282","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/3282/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/3282/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/3282/events","html_url":"https://github.com/facebook/react-native/issues/3282","id":110436162,"number":3282,"title":"[Android] measure not returning values unless element has onLayout property","user":{"login":"oblador","id":378279,"avatar_url":"https://avatars.githubusercontent.com/u/378279?v=3","gravatar_id":"","url":"https://api.github.com/users/oblador","html_url":"https://github.com/oblador","followers_url":"https://api.github.com/users/oblador/followers","following_url":"https://api.github.com/users/oblador/following{/other_user}","gists_url":"https://api.github.com/users/oblador/gists{/gist_id}","starred_url":"https://api.github.com/users/oblador/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblador/subscriptions","organizations_url":"https://api.github.com/users/oblador/orgs","repos_url":"https://api.github.com/users/oblador/repos","events_url":"https://api.github.com/users/oblador/events{/privacy}","received_events_url":"https://api.github.com/users/oblador/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/Android","name":"Android","color":"bfe5bf"},{"url":"https://api.github.com/repos/facebook/react-native/labels/Needs%20Response%20from%20Author","name":"Needs Response from Author","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"foghina","id":412054,"avatar_url":"https://avatars.githubusercontent.com/u/412054?v=3","gravatar_id":"","url":"https://api.github.com/users/foghina","html_url":"https://github.com/foghina","followers_url":"https://api.github.com/users/foghina/followers","following_url":"https://api.github.com/users/foghina/following{/other_user}","gists_url":"https://api.github.com/users/foghina/gists{/gist_id}","starred_url":"https://api.github.com/users/foghina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foghina/subscriptions","organizations_url":"https://api.github.com/users/foghina/orgs","repos_url":"https://api.github.com/users/foghina/repos","events_url":"https://api.github.com/users/foghina/events{/privacy}","received_events_url":"https://api.github.com/users/foghina/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2015-10-08T12:18:27Z","updated_at":"2016-04-27T09:56:12Z","closed_at":null,"body":"I have something similar to this:\r\n```\r\nhandleSomething: function() {\r\n  this._root.measure((ox, oy, width, height, px, py) => {\r\n    console.log({ox, oy, width, height, px, py});\r\n  });\r\n},\r\nrender: function() {\r\n  return (<View ref={component => this._root = component}>...</View>);\r\n}\r\n```\r\n\r\nThis code works flawlessly on iOS, but on android the measure callback will always be called with `undefined` arguments  – unless I put an empty callback on the `onLayout` property. "},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/215035581","html_url":"https://github.com/facebook/react-native/issues/3282#issuecomment-215035581","issue_url":"https://api.github.com/repos/facebook/react-native/issues/3282","id":215035581,"user":{"login":"sodik82","id":6132259,"avatar_url":"https://avatars.githubusercontent.com/u/6132259?v=3","gravatar_id":"","url":"https://api.github.com/users/sodik82","html_url":"https://github.com/sodik82","followers_url":"https://api.github.com/users/sodik82/followers","following_url":"https://api.github.com/users/sodik82/following{/other_user}","gists_url":"https://api.github.com/users/sodik82/gists{/gist_id}","starred_url":"https://api.github.com/users/sodik82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sodik82/subscriptions","organizations_url":"https://api.github.com/users/sodik82/orgs","repos_url":"https://api.github.com/users/sodik82/repos","events_url":"https://api.github.com/users/sodik82/events{/privacy}","received_events_url":"https://api.github.com/users/sodik82/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T09:56:12Z","updated_at":"2016-04-27T09:56:12Z","body":"I have same problem and can confirm that using `onLayout` or `collapsable={false}` helps"}}