{"action":"created","issue":{"url":"https://api.github.com/repos/yamill/react-native-orientation/issues/160","repository_url":"https://api.github.com/repos/yamill/react-native-orientation","labels_url":"https://api.github.com/repos/yamill/react-native-orientation/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/yamill/react-native-orientation/issues/160/comments","events_url":"https://api.github.com/repos/yamill/react-native-orientation/issues/160/events","html_url":"https://github.com/yamill/react-native-orientation/issues/160","id":213589461,"number":160,"title":"Can't read getInitialOrientation of undefined","user":{"login":"joeyzhao0113","id":23547018,"avatar_url":"https://avatars7.githubusercontent.com/u/23547018?v=4","gravatar_id":"","url":"https://api.github.com/users/joeyzhao0113","html_url":"https://github.com/joeyzhao0113","followers_url":"https://api.github.com/users/joeyzhao0113/followers","following_url":"https://api.github.com/users/joeyzhao0113/following{/other_user}","gists_url":"https://api.github.com/users/joeyzhao0113/gists{/gist_id}","starred_url":"https://api.github.com/users/joeyzhao0113/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeyzhao0113/subscriptions","organizations_url":"https://api.github.com/users/joeyzhao0113/orgs","repos_url":"https://api.github.com/users/joeyzhao0113/repos","events_url":"https://api.github.com/users/joeyzhao0113/events{/privacy}","received_events_url":"https://api.github.com/users/joeyzhao0113/received_events","type":"User","site_admin":false},"labels":[{"id":609395983,"url":"https://api.github.com/repos/yamill/react-native-orientation/labels/to-be-reviewed","name":"to-be-reviewed","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-03-12T07:58:06Z","updated_at":"2017-07-17T09:17:33Z","closed_at":null,"body":"I am using `react-native 0.39.2` and `\"react-native-orientation\": \"^1.17.0\"`\r\nMy code looks like below. I will get `Can't read getInitialOrientation of undefined` error when executing this code. I have run `link` on this project.\r\n\r\n```\r\nimport Orientation from 'react-native-orientation';\r\ncomponentWillMount(){\r\n\r\n    console.log('xxxx:', Orientation.getInitialOrientation());\r\n  }\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/yamill/react-native-orientation/issues/comments/315704447","html_url":"https://github.com/yamill/react-native-orientation/issues/160#issuecomment-315704447","issue_url":"https://api.github.com/repos/yamill/react-native-orientation/issues/160","id":315704447,"user":{"login":"visylvius","id":11020847,"avatar_url":"https://avatars4.githubusercontent.com/u/11020847?v=4","gravatar_id":"","url":"https://api.github.com/users/visylvius","html_url":"https://github.com/visylvius","followers_url":"https://api.github.com/users/visylvius/followers","following_url":"https://api.github.com/users/visylvius/following{/other_user}","gists_url":"https://api.github.com/users/visylvius/gists{/gist_id}","starred_url":"https://api.github.com/users/visylvius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visylvius/subscriptions","organizations_url":"https://api.github.com/users/visylvius/orgs","repos_url":"https://api.github.com/users/visylvius/repos","events_url":"https://api.github.com/users/visylvius/events{/privacy}","received_events_url":"https://api.github.com/users/visylvius/received_events","type":"User","site_admin":false},"created_at":"2017-07-17T09:17:33Z","updated_at":"2017-07-17T09:17:33Z","body":"If you go into xcode, right beneath the x in upper left hand corner there are 8 icons. \r\nClick on the folder icon then click on your project. In your project follow the path\r\n```Libraries/RCTOrientation.xcodeproj/Products/libRCTOrientaton.a```"}}
{"actor":{"display_login":"visylvius"}}