title: Javascript - React native - how to put in a TextInput and Text in the same row
body: <p>I'm working on React native and Expo XDE on my Android and I want that these Texts - "username" and the "password" will be to the right to their TextInputs (because I write in Hebrew language), so it will be in two rows and not on the screenshot below.
  This is the code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>  &lt;View style={styles.container}&gt;
   &lt;Text &gt; Travel &lt;/Text&gt;
  
          {/* &lt;View style={styles.row}&gt;
        &lt;View style={styles.inputWrap}&gt; */}
  
          &lt;Text&gt; Username &lt;/Text&gt;
  
          &lt;TextInput
            style={styles.input}
            onChangeText={text =&gt; this.setState({ username: text })}
            value={this.state.username}
          /&gt;
  
            &lt;Text&gt; Password &lt;/Text&gt;
         
          &lt;TextInput
            style={styles.input}
            onChangeText={text =&gt; this.setState({ password: text })}
            value={this.state.password}
            secureTextEntry={true}
          /&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/JvHtp.png" rel="nofollow noreferrer">This is how its look now: the main screen with login or register</a></p>
  
  <p>I'd tried these styles codes but it didn't work, it made a huge mess up on the android and everything just flew:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>input: {
      height: 40,
      width: 180,
      borderColor: "gray",
      borderWidth: 1
    },
  
    inputWrap: {
      flex: 1,
      borderColor: "#cccccc",
      borderBottomWidth: 1,
      marginBottom: 10
    },
  
    row: {
      flex: 1,
      flexDirection: "row"
    }</code></pre>
  </div>
  </div>
  </p>
  
  <p>I also want to design the headline "Travel" on the top but I
   haven't succeed at all after so many times, it stayed the same.</p>
  
  <p>Can you please help me with those issues ? if more details are needed please tell me.
  Thanks in advance.</p>