Ad

React Native Using Like Web-based Ajax Function

- 1 answer

Before a user clicks on dropdown

enter image description here

When user click on the dropbox value, my android apps will display a table below with content accordingly, like showing up the table Guest Information&payment as shown in the following image.

enter image description here

Please give me some ideas how to do it.

Ad

Answer

I found the answer.

First, set the state like this.setState({guestInfoTable : <View> Content </View>})

And then, add { this.state.guestInfoTable } in render function and it works for me! Thanks for viewing.

Ad
source: stackoverflow.com
Ad