Skip to content

Commit d806f5e

Browse files
author
Mario Muniz
committed
Prevent Shared message from appearing on Android before event is shared
1 parent dde17f0 commit d806f5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ android {
103103
applicationId "edu.ucsd"
104104
minSdkVersion 16
105105
targetSdkVersion 22
106-
versionCode 45
106+
versionCode 46
107107
versionName "5.6"
108108
ndk {
109109
abiFilters "armeabi-v7a", "x86"

app/views/common/ShareContent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { Text, Share } from 'react-native'
2+
import { Text, Share, Platform } from 'react-native'
33
import Toast from 'react-native-simple-toast'
44

55
import css from '../../styles/css'
@@ -19,7 +19,7 @@ class ShareContent extends React.Component {
1919
}
2020

2121
_showResult = (result) => {
22-
if (result.action === Share.sharedAction) {
22+
if (result.action === Share.sharedAction && Platform.OS === 'ios') {
2323
Toast.showWithGravity('Shared', Toast.SHORT, Toast.CENTER)
2424
}
2525
}

0 commit comments

Comments
 (0)