Skip to content

Commit 1bbdc20

Browse files
Merge pull request #113 from twelve17/remove-dupe-method
Remove dupe openEmailApp() method
2 parents 110ff70 + 81f8acd commit 1bbdc20

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

android/src/main/java/com/burnweb/rnsendintent/RNSendIntentModule.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -799,16 +799,6 @@ public void gotoHomeScreen() {
799799
this.reactContext.startActivity(intent);
800800
}
801801

802-
@ReactMethod
803-
public void openEmailApp() {
804-
Intent sendIntent = new Intent(Intent.ACTION_MAIN);
805-
sendIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
806-
sendIntent.addCategory(Intent.CATEGORY_APP_EMAIL);
807-
if (sendIntent.resolveActivity(this.reactContext.getPackageManager()) != null) {
808-
this.reactContext.startActivity(sendIntent);
809-
}
810-
}
811-
812802
@ReactMethod
813803
public void requestIgnoreBatteryOptimizations(final Promise promise) {
814804
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-send-intent",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "React Native Android module to use Android's Intent actions for send sms, text to shareable apps, open custom apps, make phone calls and etc",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)