To create a list, we will use the map() method . This will iterate over an array of items, and render each one. When we run the app, we will see the list of names. You can click on each item in the list to trigger an alert with the name.
Read moreWhat type of data does a ListView take in react native?
React Native ListView is a view component which contains the list of items and displays in a vertical scrollable list . The minimum API to create list view is ListView. DataSource. It populates a simple array of data blobs, and instantiate a ListView component with data source and a renderRow callback.
Read more