Skip to content

Commit c00bedf

Browse files
authored
Merge pull request #158 from react-native-webrtc/return_setup_result
Return Android setup prompt result
2 parents eb3cc37 + 14161f7 commit c00bedf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const options = {
5151
}
5252
};
5353

54-
RNCallKeep.setup(options);
54+
RNCallKeep.setup(options).then(accepted => {});
5555
```
5656

5757
- `options`: Object

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ class RNCallKeep {
187187

188188
if (shouldOpenAccounts) {
189189
RNCallKeepModule.openPhoneAccounts();
190+
return true;
190191
}
192+
193+
return false;
191194
};
192195

193196
_hasDefaultPhoneAccount = async (options) => {

0 commit comments

Comments
 (0)