I'm attempting to break out of a loop, once I have found what I'm looking for, in this case a quote.
I know from using things like Java that it is in fact possible, however it is proving more difficult than I thought in RN. When I use a JS break, it simply says its a syntax error, is there any break statements in RN?
quotes.quotesArray.map((quote, i) => {
if(!quote.isRead){
return <Text key={i} style={styles.container, styles.quote}>{quotes.quotesArray[i].quotation}</Text>;
break;
} else {
return
}
})

breakis not avaiable inmaploop, for that cases usefor