0

I am trying to create a profile screen for my user . It looks like this Profile

and the user can edit the information by clicking the TouchableOpacity and a lightbox from wix-react-native-navigation will pop up for the user to edit the info . It gonna looks like this

Edit profile

but how do i pass the textinput from lightbox to the parent ?

Hafizi
  • 39
  • 8

1 Answers1

-1

Pass an onSave function with a signature of onSave(name) down to your dialog that is called when you hit save. Then, when the user triggers a save you can do something like () => this.props.onSave(this.state.name) to call the parent function with your textbox data. Does that make sense?

sledsworth
  • 143
  • 1
  • 8