{"action":"created","issue":{"url":"https://api.github.com/repos/invertase/react-native-firebase/issues/829","repository_url":"https://api.github.com/repos/invertase/react-native-firebase","labels_url":"https://api.github.com/repos/invertase/react-native-firebase/issues/829/labels{/name}","comments_url":"https://api.github.com/repos/invertase/react-native-firebase/issues/829/comments","events_url":"https://api.github.com/repos/invertase/react-native-firebase/issues/829/events","html_url":"https://github.com/invertase/react-native-firebase/issues/829","id":296664917,"number":829,"title":"React Native If Exist in Firebase Ask Question","user":{"login":"ozican","id":17587119,"avatar_url":"https://avatars1.githubusercontent.com/u/17587119?v=4","gravatar_id":"","url":"https://api.github.com/users/ozican","html_url":"https://github.com/ozican","followers_url":"https://api.github.com/users/ozican/followers","following_url":"https://api.github.com/users/ozican/following{/other_user}","gists_url":"https://api.github.com/users/ozican/gists{/gist_id}","starred_url":"https://api.github.com/users/ozican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozican/subscriptions","organizations_url":"https://api.github.com/users/ozican/orgs","repos_url":"https://api.github.com/users/ozican/repos","events_url":"https://api.github.com/users/ozican/events{/privacy}","received_events_url":"https://api.github.com/users/ozican/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-13T09:21:12Z","updated_at":"2018-02-13T09:22:51Z","closed_at":"2018-02-13T09:22:51Z","author_association":"NONE","body":"<img width=\"507\" alt=\"ekran resmi 2018-02-13 09 08 22\" src=\"https://user-images.githubusercontent.com/17587119/36142168-4f30fa00-10b8-11e8-85fc-b7566731652b.png\">\r\nI don't know how can I do if there is not same data, can registry but if there is same data, can not registry again. I wrote code for this but it does not work.\r\n\r\n```\r\nif (firebase.database().ref(`/bavuruistek/${userid}`).child(katilan) === null ) {\r\n  firebase.database().ref(`/bavuruistek/${userid}`)\r\n    .push({\r\n      katilan, istek })\r\n    .then(() => {\r\n      dispatch({ type: STUDENT_REQUEST_SUCCESS });\r\n      Actions.pop();\r\n    });\r\n}\r\nif (firebase.database().ref(`/bavuruistek/${userid}`).child(katilan) !== null) {\r\n  console.log(firebase.database().ref(`/bavuruistek/${userid}/${katilan}`));\r\n  Alert.alert(\r\n    'Mesaj',\r\n    'Daha önce başvurunuz yapılmış!',\r\n    [\r\n      { text: 'Tamam', onPress: () => null }\r\n    ]\r\n  );\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/invertase/react-native-firebase/issues/comments/365201571","html_url":"https://github.com/invertase/react-native-firebase/issues/829#issuecomment-365201571","issue_url":"https://api.github.com/repos/invertase/react-native-firebase/issues/829","id":365201571,"user":{"login":"chrisbianca","id":10723021,"avatar_url":"https://avatars0.githubusercontent.com/u/10723021?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisbianca","html_url":"https://github.com/chrisbianca","followers_url":"https://api.github.com/users/chrisbianca/followers","following_url":"https://api.github.com/users/chrisbianca/following{/other_user}","gists_url":"https://api.github.com/users/chrisbianca/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisbianca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisbianca/subscriptions","organizations_url":"https://api.github.com/users/chrisbianca/orgs","repos_url":"https://api.github.com/users/chrisbianca/repos","events_url":"https://api.github.com/users/chrisbianca/events{/privacy}","received_events_url":"https://api.github.com/users/chrisbianca/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T09:22:50Z","updated_at":"2018-02-13T09:22:50Z","author_association":"COLLABORATOR","body":"@ozican This is not an issue, it's a question which you've already asked on Stack Overflow and somebody is helping you with."}}
{"actor":{"display_login":"chrisbianca"}}