{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/1060","labels_url":"https://api.github.com/repos/facebook/react-native/issues/1060/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/1060/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/1060/events","html_url":"https://github.com/facebook/react-native/issues/1060","id":71846570,"number":1060,"title":"Consistent .measure API for ScrollView","user":{"login":"JohnyDays","id":4540763,"avatar_url":"https://avatars.githubusercontent.com/u/4540763?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnyDays","html_url":"https://github.com/JohnyDays","followers_url":"https://api.github.com/users/JohnyDays/followers","following_url":"https://api.github.com/users/JohnyDays/following{/other_user}","gists_url":"https://api.github.com/users/JohnyDays/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnyDays/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnyDays/subscriptions","organizations_url":"https://api.github.com/users/JohnyDays/orgs","repos_url":"https://api.github.com/users/JohnyDays/repos","events_url":"https://api.github.com/users/JohnyDays/events{/privacy}","received_events_url":"https://api.github.com/users/JohnyDays/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-29T11:11:41Z","updated_at":"2015-04-30T10:30:08Z","closed_at":null,"body":"I would like to allow for any renderable view to be passed in as a component type used in a module, right now the only problem with this approach is that .measure is not present in ScrollView.\r\n\r\nI would expect .measure on the ScrollView component to redirect itself to its container, since that is just an implementation detail of the ScrollView.\r\n\r\nMy current solution is to allow for a function: reachContainer(element: view) prop that gets called and returns the actual measurable container, for this specific case, which is obviously worse than just having a consistent api.\r\n\r\nIs .measure just an implementation detail that I shouldn't be using, or is it the defacto api for getting layout details after rendering, if so i'd argue it should be consistent."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/97732095","html_url":"https://github.com/facebook/react-native/issues/1060#issuecomment-97732095","issue_url":"https://api.github.com/repos/facebook/react-native/issues/1060","id":97732095,"user":{"login":"JohnyDays","id":4540763,"avatar_url":"https://avatars.githubusercontent.com/u/4540763?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnyDays","html_url":"https://github.com/JohnyDays","followers_url":"https://api.github.com/users/JohnyDays/followers","following_url":"https://api.github.com/users/JohnyDays/following{/other_user}","gists_url":"https://api.github.com/users/JohnyDays/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnyDays/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnyDays/subscriptions","organizations_url":"https://api.github.com/users/JohnyDays/orgs","repos_url":"https://api.github.com/users/JohnyDays/repos","events_url":"https://api.github.com/users/JohnyDays/events{/privacy}","received_events_url":"https://api.github.com/users/JohnyDays/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T10:30:08Z","updated_at":"2015-04-30T10:30:08Z","body":"@vjeux From your comment, am I correct in assuming any rendered component grabbed from a ref should have a .measure function? If so, maybe this should be reported as a bug, because none of my custom components do, and neither does the ScrollView native component (I am using ES6 classes, maybe this is related?)"}}