How to pass data between child and parent in react-native?

后端 未结 6 1861
一生所求
一生所求 2020-12-30 07:49
module.exports= class APP extends React.Component {
  constructor(props){
    super(props);
    this.state = {
      key1:\'key1\',
      key2:\'key2\'
    };
  rend         


        
6条回答
  •  臣服心动
    2020-12-30 08:08

    Like you do with React.

    You have to exchange information through props, or use a library like Redux.

提交回复
热议问题