react unordered list code example

Example 1: unordered list in react native

renderRow(data) {
  return (
    <View style={{flexDirection: 'row'}}>
      <Text>{'\u2022'}</Text>
      <Text style={{flex: 1, paddingLeft: 5}}>{data}</Text>
    </View>
  );
}

Example 2: react create list of array in react

const App = props => {  const quoteArray = props.quotes.map((quote) => {    return (      <Quote text={quote.text} author={quote.author} />    );  });  return (    <div>      <h2>Famous Quotes</h2>      {quoteArray}    </div>  );};App.propTypes = {  quotes: React.PropTypes.array}