{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/1118","labels_url":"https://api.github.com/repos/facebook/react-native/issues/1118/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/1118/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/1118/events","html_url":"https://github.com/facebook/react-native/issues/1118","id":72792914,"number":1118,"title":"Using requireNativeComponent for a custom iOS View","user":{"login":"rymdluo","id":11466048,"avatar_url":"https://avatars.githubusercontent.com/u/11466048?v=3","gravatar_id":"","url":"https://api.github.com/users/rymdluo","html_url":"https://github.com/rymdluo","followers_url":"https://api.github.com/users/rymdluo/followers","following_url":"https://api.github.com/users/rymdluo/following{/other_user}","gists_url":"https://api.github.com/users/rymdluo/gists{/gist_id}","starred_url":"https://api.github.com/users/rymdluo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rymdluo/subscriptions","organizations_url":"https://api.github.com/users/rymdluo/orgs","repos_url":"https://api.github.com/users/rymdluo/repos","events_url":"https://api.github.com/users/rymdluo/events{/privacy}","received_events_url":"https://api.github.com/users/rymdluo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-03T11:29:08Z","updated_at":"2015-05-13T16:16:27Z","closed_at":null,"body":"I'm trying to pass a custom iOS view via RCTViewManager, which implements a -view method and returns an RCTView through the brief example listed on react-native.\r\n\r\nSo far I am getting this error that I am not understanding and am unsure if I am using it incorrectly:\r\n\r\n2015-05-03 19:23:40.003 [error][tid:com.facebook.React.JavaScript] \"Error: \r\n stack: \r\n  <unknown>       index.ios.bundle:39053\r\n  require         index.ios.bundle:245\r\n  <unknown>       index.ios.bundle:1127\r\n  require         index.ios.bundle:245\r\n  applyWithGuard  index.ios.bundle:873\r\n  require         index.ios.bundle:196\r\n URL: http://localhost:8081/index.ios.bundle\r\n line: 39053\r\n message: undefined is not a function (evaluating 'requireNativeComponent('DrawViewEngine', DrawViewEngine)')\"\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/101732020","html_url":"https://github.com/facebook/react-native/issues/1118#issuecomment-101732020","issue_url":"https://api.github.com/repos/facebook/react-native/issues/1118","id":101732020,"user":{"login":"rymdluo","id":11466048,"avatar_url":"https://avatars.githubusercontent.com/u/11466048?v=3","gravatar_id":"","url":"https://api.github.com/users/rymdluo","html_url":"https://github.com/rymdluo","followers_url":"https://api.github.com/users/rymdluo/followers","following_url":"https://api.github.com/users/rymdluo/following{/other_user}","gists_url":"https://api.github.com/users/rymdluo/gists{/gist_id}","starred_url":"https://api.github.com/users/rymdluo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rymdluo/subscriptions","organizations_url":"https://api.github.com/users/rymdluo/orgs","repos_url":"https://api.github.com/users/rymdluo/repos","events_url":"https://api.github.com/users/rymdluo/events{/privacy}","received_events_url":"https://api.github.com/users/rymdluo/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T16:16:27Z","updated_at":"2015-05-13T16:16:27Z","body":"@brentvatne Thanks for coming in. I did, I've reworked my code to follow closely to yours and now I'm not getting any errors and I think I got a good result(?)\r\n\r\nAs DrawViewEngine is actually a drawing view, I am wondering of the native touch handling from my custom view is at fault now or otherwise (i am initialising the view via \"initWithFrame:[[UIScreen mainScreen] bounds]\""}}