title: Required fields in React-Native
body: <p>I am checking some user input values if they are empty and if yes then I looping through their titles (textinput title) and checking if they contain '*'. If they do, I display a message to the user.
  However, my approach isnt really working for some reasons. It just continues further even if the user doesnt fill out the required fields. 
  What am I doing wrong here?</p>
  
  <pre><code>for (i = 0; i &lt; this.myInputFields.myTextFields.length; i++) {
              data[this.myInputFields.myTextFields[i].key] = this.myInputFields.myTextFields[i].inputValues; //there is a bug here, if user doesnt fill the first textinput it will fail to send
  
              if (this.myInputFields.myTextFields[i].inputValues === '') {
                  if (this.myInputFields.myTextFields[i].title.every('*')) {
                      return Alert.alert('Please fill out the required fields!')
                  }
              }
          }
  </code></pre>
  
  <p>If the user doesnt give an input in the first TextInput, that fails the operation and displays an error which says that '<code>this.myInputFields.myTextFields[i].key</code>' is not defined. It is obviously failing because it is finding the array empty and in fact it expects there to a be a value. But how can I make it continue even that one is empty? </p>