title: update value another file
body: <p>i'm building a react-native app and i need to change theme color for every user type. I am pulling this color code from server and keep in asyncstorage.</p>
  
  <p>i tried add func for changing primary color variable but the code passing them without wait give me promise not value</p>
  
  <pre><code>import { AsyncStorage } from 'react-native';
  
  let primaryColor = "orange"
  
  const func = async () =&gt; {
      let some;
      let thing = await AsyncStorage.getItem("profile")
      thing = JSON.parse(thing)
      console.warn("thing", thing.background)
      if (thing.background != undefined) {
          some = thing.background
      } else if (thing == undefined) {
          some = "red"
      }
      return some
  }
  
  primaryColor = func()
  </code></pre>
  
  <p>original:</p>
  
  <pre><code>let primaryColor = "orange";
  
  let color = {
      primaryColor: primaryColor,
      darkPrimaryColor: "#C31C0D",
      lightPrimaryColor: "#FF8A65",
      accentColor: "#4A90A4"
  
  export let BaseColor = {
      ...color,
      ... {
          textPrimaryColor: "#212121",
          textSecondaryColor: "#E0E0E1",
          grayColor: "#9B9B9B",
          darkBlueColor: "#24253D",
          dividerColor: "#BDBDBD",
          whiteColor: "#FFFFFF",
          fieldColor: "#F5F5F5",
          yellowColor: "#FDC60A",
          navyBlue: "#3C5A99"
      }
  };
  </code></pre>