title: React Native - Trying to print depending on the state of index
body: <p>I am trying to loop through this array and print out the quote, depending on if it is saved as true or false. 
  At the moment, it just prints out in the JSON array. I'm new to react native, so not 100% certain of the behaviour of <code>map</code>.</p>
  
  <pre><code>var savedQuote = quotes.quotesArray.map(quote =&gt; quote.isSaved) 
  
  {
                    quotes.quotesArray.map((quote, i) =&gt; {
                      if(savedQuote){
                          return(                            
                              &lt;TouchableOpacity key={i} style = {styles.border}&gt;
                                &lt;Text style = {styles.text}&gt;
                                  i: {i}. {quotes.quotesArray[i].preview}
                                &lt;/Text&gt;
                              &lt;/TouchableOpacity&gt; 
                          )
                      }
                      else{
                          return &lt;Text key = {i}&gt;{i}Nada&lt;/Text&gt;
                      }
                    })
                  }
  </code></pre>