{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/1163","labels_url":"https://api.github.com/repos/facebook/react-native/issues/1163/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/1163/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/1163/events","html_url":"https://github.com/facebook/react-native/issues/1163","id":73404598,"number":1163,"title":"Can't get custom UIViews to render","user":{"login":"barneyboo","id":398584,"avatar_url":"https://avatars.githubusercontent.com/u/398584?v=3","gravatar_id":"","url":"https://api.github.com/users/barneyboo","html_url":"https://github.com/barneyboo","followers_url":"https://api.github.com/users/barneyboo/followers","following_url":"https://api.github.com/users/barneyboo/following{/other_user}","gists_url":"https://api.github.com/users/barneyboo/gists{/gist_id}","starred_url":"https://api.github.com/users/barneyboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barneyboo/subscriptions","organizations_url":"https://api.github.com/users/barneyboo/orgs","repos_url":"https://api.github.com/users/barneyboo/repos","events_url":"https://api.github.com/users/barneyboo/events{/privacy}","received_events_url":"https://api.github.com/users/barneyboo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-05T19:15:14Z","updated_at":"2015-05-06T19:16:20Z","closed_at":null,"body":"I've been able to export a custom UIView such that it's exposed in JS, and is being instantiated with props being passed through, etc. which is great. My only problem is I can't actually get anything to render! My drawing logic in drawRect() is never being called. \r\n\r\nI suspect I'm misunderstanding something fundamental about how to wire things up. I've tried implementing a minimum working example and still can't get anything to render. I have a RCTViewManager with a view method as:\r\n\r\n```\r\n-(UIView *) view\r\n{\r\n  SimpleView *view = [[SimpleView alloc] initWithFrame:CGRectZero];\r\n  return view;\r\n}\r\n```\r\n\r\nI assumed the view's frame might've been set by the framework based on the style dimensions, but it doesn't appear to. Even with an explicit frame set, nothing renders. My UIView is implemented in Swift, but seeing as my props are passed correctly I'd be surprised if this was the problem. I'm fairly sure I'm just overlooking something very very stupid. I'd really appreciate any guidance!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/99578455","html_url":"https://github.com/facebook/react-native/issues/1163#issuecomment-99578455","issue_url":"https://api.github.com/repos/facebook/react-native/issues/1163","id":99578455,"user":{"login":"chirag04","id":954063,"avatar_url":"https://avatars.githubusercontent.com/u/954063?v=3","gravatar_id":"","url":"https://api.github.com/users/chirag04","html_url":"https://github.com/chirag04","followers_url":"https://api.github.com/users/chirag04/followers","following_url":"https://api.github.com/users/chirag04/following{/other_user}","gists_url":"https://api.github.com/users/chirag04/gists{/gist_id}","starred_url":"https://api.github.com/users/chirag04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chirag04/subscriptions","organizations_url":"https://api.github.com/users/chirag04/orgs","repos_url":"https://api.github.com/users/chirag04/repos","events_url":"https://api.github.com/users/chirag04/events{/privacy}","received_events_url":"https://api.github.com/users/chirag04/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T19:16:20Z","updated_at":"2015-05-06T19:16:20Z","body":"@brentvatne  I feel like a lot of people will want to extend uiView. A documented approach somewhere would be helpful."}}