|
@@ -15,6 +15,7 @@ import {
|
|
|
StyleSheet,
|
|
|
TouchableOpacity,
|
|
|
View,
|
|
|
+ Platform,
|
|
|
} from 'react-native';
|
|
|
|
|
|
import {examples} from "../examples";
|
|
@@ -65,7 +66,11 @@ class HomeScreen extends Component<Props> {
|
|
|
return (
|
|
|
<TouchableOpacity
|
|
|
style={styles.funItem} onPress={() => {
|
|
|
- if (this.state.isFocused) {
|
|
|
+ if(Platform.OS == 'android'){
|
|
|
+ if (this.state.isFocused) {
|
|
|
+ item.action(this);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
item.action(this);
|
|
|
}
|
|
|
}}>
|