React Native 隐藏组件思路
In your render function:{ this.state.showTheThing && <TextInput/>}
Then just do:
this.setState({showTheThing: true}) // to show it this.setState({showTheThing: false}) // to hide it
In your render function:{ this.state.showTheThing && <TextInput/>}
Then just do:
this.setState({showTheThing: true}) // to show it this.setState({showTheThing: false}) // to hide it