Connecting to firebase from react native
<p>I'm trying to set up a react native project with firebase, without much success. The config data is fetched from here: <a href="https://console.firebase.google.com/project/my-project/overview" rel="nofollow">https://console.firebase.google.com/project/my-project/overview</a>, so everything there is generated automatically.</p>

<p>Here's my code for the setup:</p>

<pre><code>const config = { 
    apiKey: "[MY-API-KEY]",
    authDomain: "[MY-AUTH-DOMAIN]",
    databaseURL: "[MY-DATABASE-URL]",
    storageBucket: "[MY-STORAGE-BUCKET]"
}

const firebaseApp = firebase.initializeApp(config);
const usersRef = firebaseApp.database().ref('Users');
</code></pre>

<p>and later, at some point, if I try to run this:</p>

<pre><code>usersRef.set({ test: "sdfsdf" });
</code></pre>

<p>nothing happens in the DB. I also can't get data from the database...</p>

<p>Any clue what I'm doing wrong in here?</p>