title: How to pass API (Axios) Response data across screens in React Native?
body: <p>I stuck and do not know how to pass  API Response data across screens.</p>
  
  <p>In screen #1 i do API call and get response data
  Now i need to use api-secret "key" from response data to Log out Screen.</p>
  
  <p>I was reading about Redux, but got confused and could not fully get it. </p>
  
  <p>Looking for some alternatives how i can pass data.</p>
  
  <p>My Code is</p>
  
  <pre><code>class Login extends Component {
    constructor(props) {
      super(props);
      this.state = {
        user: {
          login: "",
          password: ""
        },
        activity: false
      };
    }
  
    _login = async () =&gt; {
      if (this.state.user.login !== "" &amp;&amp; this.state.user.password !== "") {
        console.log(this.state);
        this.setState({ activity: true });
        await Axios.post(LoginAPI, this.state, { headers: { appversion: 1.4 } })
          .then(response =&gt; {
            console.log(response);
            const status = response.status;
            if (status === 200) {
              this.setState({ activity: false });
              this.setState({ response });
              this.props.navigation.navigate("CreateMove");
              console.log(this.state);
            }
          })
  
          .catch(error =&gt; {
            console.log({ error });
            this.setState({ activity: false });
            Alert.alert("Error", error.response.data.error);
          });
  
        //Alert.alert("Easymove", "Login ");
        //this.props.navigation.navigate("CreateMove");
      } else {
        Alert.alert("Support", "Email &amp; Password field can not be empty");
      }
    };
  }
  </code></pre>
  
  <p>And need To pass Response in State across screens</p>