Hier ist, was ich verwende:So übergeben Sie Eingabefelddaten von Modal an den Container in react-Native?
<Modal visible = {this.props.visible} animationType="slide" transparent onRequestClose={() => {}} > <TextInput style = {styles.inputBox} ref = {this.props.destinatinon} /> </Modal>
und im Container
<ExampleModal
destination = {this.state.destination} >
</ExampleModal>
Ich weiß nicht, wie Daten aus Modal passieren zur übergeordneten Komponente. Jede Art von Tutorial oder Link ist in Ordnung. Danke im Voraus.
Hey danke Alter, es hilft – Abhishek
Froh, das zu hören! – eden