{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/aws-sdk-react-native/issues/24","repository_url":"https://api.github.com/repos/awslabs/aws-sdk-react-native","labels_url":"https://api.github.com/repos/awslabs/aws-sdk-react-native/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-sdk-react-native/issues/24/comments","events_url":"https://api.github.com/repos/awslabs/aws-sdk-react-native/issues/24/events","html_url":"https://github.com/awslabs/aws-sdk-react-native/issues/24","id":190914731,"number":24,"title":" 'initWithOptions' of undefined   ","user":{"login":"damathryx","id":14576761,"avatar_url":"https://avatars.githubusercontent.com/u/14576761?v=3","gravatar_id":"","url":"https://api.github.com/users/damathryx","html_url":"https://github.com/damathryx","followers_url":"https://api.github.com/users/damathryx/followers","following_url":"https://api.github.com/users/damathryx/following{/other_user}","gists_url":"https://api.github.com/users/damathryx/gists{/gist_id}","starred_url":"https://api.github.com/users/damathryx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damathryx/subscriptions","organizations_url":"https://api.github.com/users/damathryx/orgs","repos_url":"https://api.github.com/users/damathryx/repos","events_url":"https://api.github.com/users/damathryx/events{/privacy}","received_events_url":"https://api.github.com/users/damathryx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-22T06:02:30Z","updated_at":"2016-12-07T13:35:38Z","closed_at":null,"body":"I'm getting this error on both iOS and Android\r\n![screen shot 2016-11-22 at 1 57 30 pm](https://cloud.githubusercontent.com/assets/14576761/20512695/0b89174a-b0bc-11e6-8d03-ee4aca82e7a3.png)\r\n\r\n\r\ninside my contructor i have this \r\n![screen shot 2016-11-22 at 1 59 09 pm](https://cloud.githubusercontent.com/assets/14576761/20512729/398d2096-b0bc-11e6-9414-d97c8f2b3f33.png)\r\n\r\n\r\nwhat seems to be the problem?\r\n"},"comment":{"url":"https://api.github.com/repos/awslabs/aws-sdk-react-native/issues/comments/265448380","html_url":"https://github.com/awslabs/aws-sdk-react-native/issues/24#issuecomment-265448380","issue_url":"https://api.github.com/repos/awslabs/aws-sdk-react-native/issues/24","id":265448380,"user":{"login":"bhses","id":6451966,"avatar_url":"https://avatars.githubusercontent.com/u/6451966?v=3","gravatar_id":"","url":"https://api.github.com/users/bhses","html_url":"https://github.com/bhses","followers_url":"https://api.github.com/users/bhses/followers","following_url":"https://api.github.com/users/bhses/following{/other_user}","gists_url":"https://api.github.com/users/bhses/gists{/gist_id}","starred_url":"https://api.github.com/users/bhses/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhses/subscriptions","organizations_url":"https://api.github.com/users/bhses/orgs","repos_url":"https://api.github.com/users/bhses/repos","events_url":"https://api.github.com/users/bhses/events{/privacy}","received_events_url":"https://api.github.com/users/bhses/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T13:35:38Z","updated_at":"2016-12-07T13:35:38Z","body":"I just reproduced the error by commenting out a line in Android native code:\r\n![initwithoptions](https://cloud.githubusercontent.com/assets/6451966/20968789/6bff249a-bc86-11e6-9c43-13f74de10d80.png)\r\n\r\nI'm running with : [Initial Release v0.0.1](https://github.com/awslabs/aws-sdk-react-native/releases/tag/v0.0.1)\r\n\r\nWhat I had to do to fix it:\r\n_In a react-native project_\r\n1.  In _android/settings.gradle_ add lines:\r\n```\r\ninclude ':aws-sdk-react-native-core'`\r\n`project(':aws-sdk-react-native-core').projectDir = new File(rootProject.projectDir, '../node_modules/aws-sdk-react-native-core/android')\r\n```\r\n2. In _android/app/build.gradle_ add line in dependencies:\r\n```\r\ndependencies {\r\n    compile project(':aws-sdk-react-native-core')\r\n    ...\r\n}\r\n```\r\n3. In android/app/src/main/java/com/\"your app name\"/MainApplication.java\r\n\r\n- Add import:\r\n`import com.amazonaws.reactnative.core.AWSRNCorePackage;`\r\n\r\n- Add line:\r\n```\r\n    @Override\r\n    protected List<ReactPackage> getPackages() {\r\n      return Arrays.<ReactPackage>asList(\r\n          ...,\r\n          new AWSRNCorePackage() // add this line\r\n      );\r\n    }\r\n```\r\n4. Run project:\r\n`$ react-native run-android`\r\n\r\nPost which may be overlapping:\r\nhttps://github.com/awslabs/aws-sdk-react-native/issues/4"}}
{"actor":{"display_login":"bhses"}}