toggleModalAndHop(screenName) {
    let payment = {
        name: this.state.paymentData.name,
        payid: this.state.paymentData.payID,
        number: this.state.paymentData.phoneNumber,
        
       };
    this.setState({modalVisible: !this.state.modalVisible });
    console.log("name:: "+this.state.paymentData.name+" payid:: "+this.state.paymentData.payID+" number:: "+this.state.paymentData.phoneNumber)
    if (screenName && screenName != '') {
       this.props.navigation.navigate(screenName, { payment });
       
    }
  }
//close the modal screen and hope to a prefered screen
close the modal screen and hope to a prefered screen
close the modal screen and hope to a prefered screen
toggleModalAndHop(screenName) {
    let payment = {
        name: this.state.paymentData.name,
        payid: this.state.paymentData.payID,
        number: this.state.paymentData.phoneNumber,
       };
    this.setState({modalVisible: !this.state.modalVisible });
    console.log("name:: "+this.state.paymentData.name+" payid:: "+this.state.paymentData.payID+" number:: "+this.state.paymentData.phoneNumber)
    if (screenName && screenName != '') {
       this.props.navigation.navigate(screenName, { payment });
    }
  }
toggleModalAndHop ( screenName ) { let payment = { name : this . state . paymentData . name , payid : this . state . paymentData . payID , number : this . state . paymentData . phoneNumber , } ; this . setState ( { modalVisible : ! this . state . modalVisible } ) ; console . log ( "name:: " + this . state . paymentData . name + " payid:: " + this . state . paymentData . payID + " number:: " + this . state . paymentData . phoneNumber ) if ( screenName && screenName != '' ) { this . props . navigation . navigate ( screenName , { payment } ) ; } }
close the modal screen and hope to a prefered screen
close the modal screen and hope to a prefered screen