From 3c9aaa5bfc78b20c60a8a1856e447da6a9ec8a69 Mon Sep 17 00:00:00 2001 From: Emmanuel Quentin Date: Wed, 26 Feb 2020 09:06:59 -0500 Subject: [PATCH 1/2] Return Android setup prompt result --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index b500b108..37e6a559 100644 --- a/index.js +++ b/index.js @@ -187,7 +187,10 @@ class RNCallKeep { if (shouldOpenAccounts) { RNCallKeepModule.openPhoneAccounts(); + return true; } + + return false; }; _hasDefaultPhoneAccount = async (options) => { From 14161f7bb4af728929880a8b4ad71be982a5d1b6 Mon Sep 17 00:00:00 2001 From: Emmanuel Quentin Date: Wed, 26 Feb 2020 09:11:58 -0500 Subject: [PATCH 2/2] Add doc about the accepted result during setup --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b395164..69ae11d4 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ const options = { } }; -RNCallKeep.setup(options); +RNCallKeep.setup(options).then(accepted => {}); ``` - `options`: Object