{"action":"created","issue":{"url":"https://api.github.com/repos/ianlin/react-native-callkit/issues/20","repository_url":"https://api.github.com/repos/ianlin/react-native-callkit","labels_url":"https://api.github.com/repos/ianlin/react-native-callkit/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/ianlin/react-native-callkit/issues/20/comments","events_url":"https://api.github.com/repos/ianlin/react-native-callkit/issues/20/events","html_url":"https://github.com/ianlin/react-native-callkit/issues/20","id":277181982,"number":20,"title":"How to run up the example?","user":{"login":"imakou","id":1507950,"avatar_url":"https://avatars2.githubusercontent.com/u/1507950?v=4","gravatar_id":"","url":"https://api.github.com/users/imakou","html_url":"https://github.com/imakou","followers_url":"https://api.github.com/users/imakou/followers","following_url":"https://api.github.com/users/imakou/following{/other_user}","gists_url":"https://api.github.com/users/imakou/gists{/gist_id}","starred_url":"https://api.github.com/users/imakou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imakou/subscriptions","organizations_url":"https://api.github.com/users/imakou/orgs","repos_url":"https://api.github.com/users/imakou/repos","events_url":"https://api.github.com/users/imakou/events{/privacy}","received_events_url":"https://api.github.com/users/imakou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-27T21:52:15Z","updated_at":"2017-11-28T02:10:55Z","closed_at":null,"author_association":"NONE","body":"Hi all,\r\n\r\nI'd like to just run up an example first without sip setting.\r\nI've settled down `AppDelegate.m` already.\r\nApp has been compiled and build successfully.\r\n\r\nMy purpose is just to render the incoming UI in current process.\r\nHow can I make it?\r\n\r\n``` javascript\r\nimport React, { Component } from \"react\";\r\nimport { Platform, StyleSheet, Text, View } from \"react-native\";\r\nimport RNCallKit from \"react-native-callkit\";\r\nimport uuid from \"uuid\";\r\n\r\nexport default class App extends Component<{}> {\r\n  constructor(props) {\r\n    super(props);\r\n    RNCallKit.setup({ appName: \"CALL_KIT\" });\r\n  }\r\n  onIncomingCall() {\r\n    // Store the generated uuid somewhere\r\n    // You will need this when calling RNCallKit.endCall()\r\n    let _uuid = uuid.v4();\r\n    RNCallKit.displayIncomingCall(_uuid, \"886900000000\");\r\n  }\r\n  render() {\r\n    return <View>{this.onIncomingCall()}</View>;\r\n  }\r\n}\r\n\r\n```\r\nThe result is nothing happen in the simulator.\r\n\r\nThanks for any opinion."},"comment":{"url":"https://api.github.com/repos/ianlin/react-native-callkit/issues/comments/347390987","html_url":"https://github.com/ianlin/react-native-callkit/issues/20#issuecomment-347390987","issue_url":"https://api.github.com/repos/ianlin/react-native-callkit/issues/20","id":347390987,"user":{"login":"ianlin","id":914406,"avatar_url":"https://avatars3.githubusercontent.com/u/914406?v=4","gravatar_id":"","url":"https://api.github.com/users/ianlin","html_url":"https://github.com/ianlin","followers_url":"https://api.github.com/users/ianlin/followers","following_url":"https://api.github.com/users/ianlin/following{/other_user}","gists_url":"https://api.github.com/users/ianlin/gists{/gist_id}","starred_url":"https://api.github.com/users/ianlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianlin/subscriptions","organizations_url":"https://api.github.com/users/ianlin/orgs","repos_url":"https://api.github.com/users/ianlin/repos","events_url":"https://api.github.com/users/ianlin/events{/privacy}","received_events_url":"https://api.github.com/users/ianlin/received_events","type":"User","site_admin":false},"created_at":"2017-11-28T02:10:55Z","updated_at":"2017-11-28T02:10:55Z","author_association":"OWNER","body":"Perhaps adding a button in your view with `onPress()` listener calling to `this.onIncomingCall()`?"}}
{"actor":{"display_login":"ianlin"}}