title: Pass values from a page to another
body: <p>I have two arrays that contain data, I should pass these arrays to another page.</p>
  
  <p><strong>First page</strong></p>
  
  <pre><code>stopConnection(array_acc_sx,array_acc_dx) {
      return new Promise((resolve, reject) =&gt; {
        console.log("Inizio stopConnection");
        Actions.registerattivita(this.state.array_acc_sx,this.state.array_acc_dx)
        // ....
      });
    }
  
    render() {
      return (
          // ......
  
          &lt;View&gt;
            &lt;TouchableOpacity
              style={[style.button, style.buttonOK]}
              onPress={() =&gt;
                this.stopConnection(
                  this.state.array_acc_sx,
                  this.state.array_acc_dx
                )
              }
            &gt;
            // ....
  </code></pre>
  
  <p>and in the <strong>RegisterAttivita.js</strong>: </p>
  
  <pre><code>constructor(props) {
      super(props);
      this.state = {
        loading: true,
        array_acc_sx: [],
        array_acc_dx: [],
      };
    }
  
    componentDidMount() {
      this.dataReceived(this.props.array_acc_sx,this.props.array_acc_dx)
    }
  
    dataReceived(array_acc_sx, array_acc_dx){
      console.log("data acc_sx: " + this.props.array_acc_sx)
      console.log("data acc_dx: " + this.props.array_acc_dx)
    }
  </code></pre>
  
  <p>So I should pass this.props.array_acc_sx and this.props.array_acc_dx to one page to another. At the moment I received that these two variables are [undefined].</p>
  
  <p>How can I pass these two? 
  Thank You </p>