Skip to content

Commit f4f3c77

Browse files
authored
Update readme
1 parent 44462a0 commit f4f3c77

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ After all works are done, remember to call `RNCallKit.startCall(uuid, calleeNumb
148148
User answer the incoming call
149149

150150
Do your normal `Answering` actions here
151+
151152
**data**:
152153

153154
```javascript
@@ -161,6 +162,7 @@ Do your normal `Answering` actions here
161162
User finish the call
162163

163164
Do your normal `Hang Up` actions here
165+
164166
**data**:
165167

166168
```javascript
@@ -217,21 +219,21 @@ class RNCallKitExample extends React.Component {
217219
RNCallKit.startCall(_uuid, data.handle);
218220
}
219221

220-
onRNCallKitPerformAnswerCallAction() {
222+
onRNCallKitPerformAnswerCallAction(data) {
221223
/* You will get this event when the user answer the incoming call
222224
*
223225
* Try to do your normal Answering actions here
224226
*
225-
* e.g. this.handleAnswerCall();
227+
* e.g. this.handleAnswerCall(data.callUUID);
226228
*/
227229
}
228230

229-
onRNCallKitPerformEndCallAction() {
231+
onRNCallKitPerformEndCallAction(data) {
230232
/* You will get this event when the user finish the incoming/outgoing call
231233
*
232234
* Try to do your normal Hang Up actions here
233235
*
234-
* e.g. this.handleHangUpCall();
236+
* e.g. this.handleHangUpCall(data.callUUID);
235237
*/
236238
}
237239

0 commit comments

Comments
 (0)