From a9f99814fa036e47cf6f01049a5fd99cbedb1afa Mon Sep 17 00:00:00 2001 From: Juan Antonio Date: Wed, 15 Jan 2020 13:34:50 +0100 Subject: [PATCH] Update RNMailComposeModule.java ACTIVITY_SEND must be any other 16 bit number to avoid an "Unknown Error". See #21 and https://developer.android.com/training/basics/intents/result --- .../java/com/reactlibrary/mailcompose/RNMailComposeModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/reactlibrary/mailcompose/RNMailComposeModule.java b/android/src/main/java/com/reactlibrary/mailcompose/RNMailComposeModule.java index f0f2bd0..ebfbfb5 100644 --- a/android/src/main/java/com/reactlibrary/mailcompose/RNMailComposeModule.java +++ b/android/src/main/java/com/reactlibrary/mailcompose/RNMailComposeModule.java @@ -35,7 +35,7 @@ public class RNMailComposeModule extends ReactContextBaseJavaModule { - private static final int ACTIVITY_SEND = 129382; + private static final int ACTIVITY_SEND = 1; private Promise mPromise;