0
我是新的反應原生,我想添加表單在底部如果點擊圖像反應原生。這是我的代碼如何添加窗體從圖像點擊原生反應?
<View>
<TouchableHighlight onPress={() => this._addForm()}>
<Image source={require('../images/plus.png')} />
</TouchableHighlight>
</View>
{this._addForm()}
此功能
_addForm(){
<View>
<TextInput
autoCorrect={false}
style={styles.inputVal}
onChangeText={(category) => this.setState({category})}/>
</View>
}
請幫助。感謝