title: React Native - Firebase: How do I show user data in native react with firebase?
body: <p><a href="https://i.stack.imgur.com/4IaGU.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>I have the following code, but it shows nothing</p>
  
  <pre><code>state = {
   items: []
  }
  
  componentWillMount() {
     const { uid } = firebase.auth().currentUser.uid;
     var usersRef = firebase.database().ref('/users/'+ uid);
     usersRef.once('value').then(snapshot =&gt; {
       items= snapshot.val()
     }); 
  }
  render() {
    const { items } = this.state;
    return (
      &lt;View&gt;
         &lt;Text style={styles.name}&gt;{items.nombre}&lt;/Text&gt;
     &lt;/View&gt;
    )}
  </code></pre>