title: ReactNative - SocketRocket: In debug mode. Allowing connection to any root cert
body: <p>I'm trying to connect my app with Firebase. I made a class that config Firebase:</p>
  <pre class="lang-js prettyprint-override"><code>import Firebase from &quot;firebase&quot;;
  
  const config = {
    apiKey: &quot;&quot;,
    authDomain: &quot;&quot;,
    databaseURL: &quot;&quot;,
    projectId: &quot;&quot;,
    storageBucket: &quot;&quot;,
    messagingSenderId: &quot;&quot;,
  };
  
  let app = Firebase.initializeApp(config);
  
  export const db = app.database();
  </code></pre>
  <p>And it returns the error of &quot;SocketRocket: In debug mode.  Allowing connection to any root cert&quot;
  I tried many solutions with include (<a href="https://github.com/facebook/react-native/commit/607527c0d4bf6d8197829f3523c4d937ac71ed07" rel="nofollow noreferrer">https://github.com/facebook/react-native/commit/607527c0d4bf6d8197829f3523c4d937ac71ed07</a>) solution but didn't work any of it.
  I'm stuck here for the past 2 days and didn't find any workable solution</p>