title: How to get a text input value in a view?
body: <p>I'm working on React Native and I'm quite a beginner so sorry in advance if my question is particularly easy.</p>
  <p>I'm working in a view (Home.Js), not in App.Js for the moment. In this Home view I have a text input (username) and I want to get the value entered by the user when he clicks on a button. I watched explaining videos but they explain how to do it in App.Js and it doesn't work when i implement it in my view. Here is my code. Thank you</p>
  <hr />
  <pre><code>#Here We Are in my Home View (Home.Js) not App.Js
  
  import React from 'react';
  import { Image, ImageBackground, StyleSheet, View, Text, TouchableOpacity, TextInput, Button } from 'react-native';
  
  function Home(props) {
  
  return (
      &lt;View style={styles.container}&gt;
          &lt;View style={styles.header}&gt;
              &lt;Image source={require('../assets/logo.png')}
              style={styles.Logo}/&gt;
              &lt;Image source={require('../assets/Joiny.png')}
              style={styles.Logo}/&gt;
          &lt;/View&gt;
          &lt;View style={styles.footer}&gt;
              &lt;TextInput&gt;Username&lt;/TextInput&gt;
          &lt;/View&gt;
  
      &lt;/View&gt;
  );
  </code></pre>
  <p>};</p>