0
你好我试图将数据传递到另一个画面,我这样做:如何使用反应原生路由器通量将数据传递到另一个屏幕?
constructor(props) {
super(props);
this.state {
qty: '',
}
}
的TextInput:
<TextInput
placeholder="Quantity"
underlineColorAndroid={'rgba(0,0,0,0)'}
onChangeText={(text) => this.setState({qty: text})}
numberOfLines={4}
style={styles.textstyleinputed1}
/>
按钮:
<TouchableHighlight style = {styles.button} onPress={()=>Actions.gotoMap(this.state.qty)} underlayColor="transparent">
<Text style={styles.buttonText}>NEXT</Text>
</TouchableHighlight>
这是我在如何调用其他屏幕
<Text>{this.props.qty}</Text>
并没有显示。我不知道缺少什么。
是它瓦特orking @ggnades? –