我试图在Android设备上使用ScrollView的onResponderRelease事件,但它不能正常工作.像这样的代码:
<ScrollView
onResponderRelease = {()=>{console.log('release')}}
/>
Run Code Online (Sandbox Code Playgroud)
我看到很多反应原生的lib都像这样使用这个api.它支持android平台吗?
我正在学习本机反应,当我尝试在flex布局中使用TextInput组件时,它会消失.
index.android.js
//....
render(){
return (
<View style={ {flex:1,flexDirection:'row'}}>
<TextInput placeholder="test"/>
</View>
)
}
//....
Run Code Online (Sandbox Code Playgroud)
我很困惑.
react-native ×2