I want to store usere\_id in global value state so i create global.js 

```
module.exports = {
    users_id: "",
 };

```

and import it in post.js , so how can store data in Global.users\_id and use it anywhere i want ...
i tried this 

```

  Login = async () => {
    const response = await fetch("http://192.168.6.107:8080/login", {
      method: "POST",
      headers: {
        Accept: "application/json",
        "Content-Type": "application/json"
      },
      body: JSON.stringify({
        username: this.state.username,
        password: this.state.password,

      })
    });
    const data = await response.json();
    console.log("data", data);
    console.log("data.suc", data.success);
    if (data.success) {
      AsyncStorage.setItem("user", JSON.stringify(data.user));
      console.log("DATAAA>>>>",data)

     const global= data.user.users_id
       const global2=    GLOBAL.users_id.setState({
       users_id:global
       })
      console.log("global",global2)
    }
    return data.success;
  };

```

I want to get users\_id from this data

```
DATAAA>>>> Object {
 "success": true,
  "user": Array [
    Object {
      "password": "ddd",
      "username": "ddd",
       "users_id": 1,
    },
  ],
}

```