React-native 子传父

this.state={name:''}

handlechild(uname){

    this.setState({name:uname})

}

this.handleChild(uname)}

componentDidMount(){

    this.props.cancal('子传父')

}

你可能感兴趣的:(React-native 子传父)