Skip to content

Commit

Permalink
Prevent Shared message from appearing on Android before event is shared
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Muniz committed Apr 25, 2018
1 parent dde17f0 commit d806f5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ android {
applicationId "edu.ucsd"
minSdkVersion 16
targetSdkVersion 22
versionCode 45
versionCode 46
versionName "5.6"
ndk {
abiFilters "armeabi-v7a", "x86"
Expand Down
4 changes: 2 additions & 2 deletions app/views/common/ShareContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Text, Share } from 'react-native'
import { Text, Share, Platform } from 'react-native'
import Toast from 'react-native-simple-toast'

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

_showResult = (result) => {
if (result.action === Share.sharedAction) {
if (result.action === Share.sharedAction && Platform.OS === 'ios') {
Toast.showWithGravity('Shared', Toast.SHORT, Toast.CENTER)
}
}
Expand Down

0 comments on commit d806f5e

Please sign in to comment.