I’m struggling with a touch items problem on Android.
Could you help me?
Problem:
can not touch any touchable items(TextInput,TouchableHighlight,TouchableOpacity).
It occurs on only Android, but not iOS.
below is my code.
Strange to say, Once switching toggle inspector(React debugger) on and off, it become to work.
It occurs not only develop enviroment, but also product enviroment.
It seems that there are no strange code in my code.
Do you have any thoughts about what the cause might be?
render {
return(
<View style={styles.wrapper}>
<ScrollView>
<TextInput
style={styles.signInInput}
value={this.state.email}
onChangeText={(text) => { this.setState({ email: text }); }}
autoCapitalize="none"
autoCorrect={false}
placeholder="email"
keyboardType="email-address"
underlineColorAndroid="transparent"
/>
<TextInput
style={styles.signInInput}
value={this.state.password}
onChangeText={(text) => { this.setState({ password: text }); }}
autoCapitalize="none"
autoCorrect={false}
placeholder="password"
secureTextEntry
underlineColorAndroid="transparent"
/>
<TouchableHighlight
onPress={this.onPress}
style={styles.buttonStyle}
underlayColor="transparent"
>
<Text style={styles.labelStyle}>signin</Text>
</TouchableHighlight>
</ScrollView>
</View>
);
}
my project package dependencies
"dependencies": {
"autobind-decorator": "^2.1.0",
"expo": "^25.0.0",
"firebase": "4.6.2",
"lodash.debounce": "^4.0.8",
"moment": "^2.20.1",
"prop-types": "^15.6.0",
"react": "16.2.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz",
"react-native-autolink": "^1.4.0",
"react-native-firebase": "^3.2.2",
"react-native-fontawesome": "^5.7.0",
"react-native-loading-gif": "^1.1.3",
"react-native-redux-toast": "^1.0.3",
"react-native-vector-icons": "^4.5.0",
"react-navigation": "^1.0.0-beta.23",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0"
},