title: How to mock Config data of 'react-native-config' library in react native using Jest?
body: <p>Here I am trying to get the environment details to fetch the base url of the application. <a href="https://github.com/luggit/react-native-config" rel="nofollow noreferrer">Here is the package being used</a>.</p>
  <p>// configfile.ts</p>
  <pre><code>import Config from 'react-native-config';
  
  interface Setting {
    environment: string;
   
  }
  const settings: Setting = {
    environment: Config.ENV || '',
  
  };
  
  export default settings;
  </code></pre>
  <p>Now whenever I am trying to access <code>settings.environment</code> from my test file , it is returning empty string('') because the value of <code>Config.ENV</code> is undefined as I am not able to mock the value.</p>
  <p><strong>Excepted Result :</strong> Whenever I will call <code>settings.environment</code> , I should get <strong>'test'</strong> as returned string value.</p>