{"action":"created","issue":{"url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/42","repository_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker","labels_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/42/comments","events_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/42/events","html_url":"https://github.com/ivpusic/react-native-image-crop-picker/issues/42","id":170314179,"number":42,"title":"Cannot read property 'openPicker' of undefined","user":{"login":"ottoborden","id":3083164,"avatar_url":"https://avatars.githubusercontent.com/u/3083164?v=3","gravatar_id":"","url":"https://api.github.com/users/ottoborden","html_url":"https://github.com/ottoborden","followers_url":"https://api.github.com/users/ottoborden/followers","following_url":"https://api.github.com/users/ottoborden/following{/other_user}","gists_url":"https://api.github.com/users/ottoborden/gists{/gist_id}","starred_url":"https://api.github.com/users/ottoborden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottoborden/subscriptions","organizations_url":"https://api.github.com/users/ottoborden/orgs","repos_url":"https://api.github.com/users/ottoborden/repos","events_url":"https://api.github.com/users/ottoborden/events{/privacy}","received_events_url":"https://api.github.com/users/ottoborden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-10T02:27:56Z","updated_at":"2016-08-18T22:08:24Z","closed_at":null,"body":"This project looks great and I'm really looking forward to using it. However I'm getting the error referenced in the title when trying to open the image picker in my app.\r\n\r\nHere is the code:\r\n\r\n```\r\nimport ImagePicker from 'react-native-image-crop-picker'\r\n\r\n...\r\n\r\nselectPhotoTapped() {\r\n    console.log(ImagePicker)\r\n    ImagePicker.openPicker({\r\n      multiple: true\r\n    }).then(images => {\r\n      console.log(images);\r\n    })\r\n}\r\n\r\n...\r\n\r\n<TouchableOpacity onPress={this.selectPhotoTapped.bind(this)}>\r\n  <View style={[styles.avatar, styles.avatarContainer, {marginBottom: 20}]}>\r\n    { this.state.image === null ? <Text>Select a Photo</Text> :\r\n      <Image style={styles.avatar} source={this.state.image} />\r\n    }\r\n  </View>\r\n</TouchableOpacity>\r\n```\r\n\r\n\r\nAnd this is my Podfile:\r\n```\r\n# Uncomment this line to define a global platform for your project\r\nplatform :ios, '9.0'\r\n\r\ntarget 'SclMktUi' do\r\n  # Uncomment this line if you're using Swift or would like to use dynamic frameworks\r\n  # use_frameworks!\r\n\r\n  # Pods for SclMktUi\r\n\r\n  target 'SclMktUiTests' do\r\n    inherit! :search_paths\r\n    source 'https://github.com/CocoaPods/Specs.git'\r\n    pod 'React', :path => '../node_modules/react-native'\r\n    pod 'react-native-image-crop-picker', :path => '../node_modules/react-native-image-crop-picker/ios'\r\n    # Pods for testing\r\n  end\r\n\r\nend\r\n```\r\n\r\n\r\nPer the iOS install instructions I added `$(inherited)` to the Other Linker Flags field:\r\n\r\n![screen shot 2016-08-09 at 10 39 37 pm](https://cloud.githubusercontent.com/assets/3083164/17540179/32c3a6f4-5e82-11e6-9297-fce30b0483f5.png)\r\n\r\n\r\nWhen I run the code and click my TouchableOpacity I get the RSOD and the console log of ImagePicker reports `undefined`. Not sure what I'm doing wrong here.\r\n\r\nFrom checking out [https://github.com/ivpusic/react-native-image-crop-picker/issues/33] I found that I had to undo the `rnpm link` at which point the build succeeded but I'm stuck at this undefined error. Everything looks good to my ignorant eyes 😄 \r\n\r\nBelow is a screenshot of my Build Phases settings in Xcode. Any help would be greatly appreciated!\r\n\r\n![screen shot 2016-08-09 at 10 25 53 pm](https://cloud.githubusercontent.com/assets/3083164/17539944/7b76f056-5e80-11e6-937a-575b4c914516.png)"},"comment":{"url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/comments/240872359","html_url":"https://github.com/ivpusic/react-native-image-crop-picker/issues/42#issuecomment-240872359","issue_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/42","id":240872359,"user":{"login":"ivpusic","id":450140,"avatar_url":"https://avatars.githubusercontent.com/u/450140?v=3","gravatar_id":"","url":"https://api.github.com/users/ivpusic","html_url":"https://github.com/ivpusic","followers_url":"https://api.github.com/users/ivpusic/followers","following_url":"https://api.github.com/users/ivpusic/following{/other_user}","gists_url":"https://api.github.com/users/ivpusic/gists{/gist_id}","starred_url":"https://api.github.com/users/ivpusic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivpusic/subscriptions","organizations_url":"https://api.github.com/users/ivpusic/orgs","repos_url":"https://api.github.com/users/ivpusic/repos","events_url":"https://api.github.com/users/ivpusic/events{/privacy}","received_events_url":"https://api.github.com/users/ivpusic/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T22:08:24Z","updated_at":"2016-08-18T22:08:24Z","body":"any progress here?"}}
{"actor":{"display_login":"ivpusic"}}