使用类似基于网络的 ajax 函数对本机做出反应

react native using like web-based ajax function

在用户点击下拉列表之前

当用户单击保管箱值时,我的 android 应用程序将在下面显示 table 相应的内容,例如显示 table 客人信息和付款,如下图所示.

请给我一些如何做的想法。

我找到了答案。

首先,将状态设置为this.setState({guestInfoTable : <View> Content </View>})

然后,在渲染函数中添加 { this.state.guestInfoTable },它对我有用!感谢观看。