{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/224","repository_url":"https://api.github.com/repos/aws/aws-amplify","labels_url":"https://api.github.com/repos/aws/aws-amplify/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-amplify/issues/224/comments","events_url":"https://api.github.com/repos/aws/aws-amplify/issues/224/events","html_url":"https://github.com/aws/aws-amplify/issues/224","id":294024078,"number":224,"title":"withAuthenticator throwing randomBytes is not a function","user":{"login":"Darkade","id":4106546,"avatar_url":"https://avatars1.githubusercontent.com/u/4106546?v=4","gravatar_id":"","url":"https://api.github.com/users/Darkade","html_url":"https://github.com/Darkade","followers_url":"https://api.github.com/users/Darkade/followers","following_url":"https://api.github.com/users/Darkade/following{/other_user}","gists_url":"https://api.github.com/users/Darkade/gists{/gist_id}","starred_url":"https://api.github.com/users/Darkade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Darkade/subscriptions","organizations_url":"https://api.github.com/users/Darkade/orgs","repos_url":"https://api.github.com/users/Darkade/repos","events_url":"https://api.github.com/users/Darkade/events{/privacy}","received_events_url":"https://api.github.com/users/Darkade/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-02-02T21:09:41Z","updated_at":"2018-02-10T22:32:57Z","closed_at":"2018-02-03T15:03:43Z","author_association":"NONE","body":"After updating amplify to `\"aws-amplify-react-native\": \"^0.2.0\"` I'm getting this error in my login screen `undefined is not a function (Evaluating '_global.util.crypto.lib.randomBytes(128)')`\r\n\r\n![screen shot 2018-02-02 at 3 07 49 pm](https://user-images.githubusercontent.com/4106546/35754950-fce40b92-082a-11e8-8dfe-ce716e5c5822.png)\r\n\r\n\r\nI've searched and found that this might be a `amazon-cognito-identity-js` version issue https://github.com/aws/amazon-cognito-identity-js/issues/646 but adding the line package.json doesn't solve the issue `\"aws-sdk\": \"2.177.0\"`\r\n\r\nI'm trying with a this bare-bones app, but I'm getting the same Issue\r\n\r\n```\r\n// AWS Imports\r\nimport aws_exports from './aws-exports';\r\n\r\n// React Imports\r\nimport React, { Component } from 'react';\r\nimport { View, Text } from 'react-native';\r\nimport Amplify from 'aws-amplify';\r\nimport { withAuthenticator } from 'aws-amplify-react-native';\r\nAmplify.configure(aws_exports);\r\n\r\nclass App extends Component<{}> {\r\n    render() {\r\n        return (\r\n            <View>\r\n            <Text>Test</Text>\r\n            </View>\r\n        );\r\n    }\r\n}\r\n\r\nexport default withAuthenticator(App);\r\n```\r\n\r\nI'm using `aws-amplify` to configure as suggested to me here https://github.com/aws/aws-amplify/pull/109#issuecomment-362676278\r\n\r\nAny ideas what might be going on? Thanks!"},"comment":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/comments/364701150","html_url":"https://github.com/aws/aws-amplify/issues/224#issuecomment-364701150","issue_url":"https://api.github.com/repos/aws/aws-amplify/issues/224","id":364701150,"user":{"login":"mlabieniec","id":1417045,"avatar_url":"https://avatars1.githubusercontent.com/u/1417045?v=4","gravatar_id":"","url":"https://api.github.com/users/mlabieniec","html_url":"https://github.com/mlabieniec","followers_url":"https://api.github.com/users/mlabieniec/followers","following_url":"https://api.github.com/users/mlabieniec/following{/other_user}","gists_url":"https://api.github.com/users/mlabieniec/gists{/gist_id}","starred_url":"https://api.github.com/users/mlabieniec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlabieniec/subscriptions","organizations_url":"https://api.github.com/users/mlabieniec/orgs","repos_url":"https://api.github.com/users/mlabieniec/repos","events_url":"https://api.github.com/users/mlabieniec/events{/privacy}","received_events_url":"https://api.github.com/users/mlabieniec/received_events","type":"User","site_admin":false},"created_at":"2018-02-10T22:32:57Z","updated_at":"2018-02-10T22:32:57Z","author_association":"COLLABORATOR","body":"@rayhaanq in react native you have to run\r\n\r\n    react-native link amazon-cognito-identity-js\r\n\r\nfor that function.\r\n"}}
{"actor":{"display_login":"mlabieniec"}}