score:2

Accepted answer
 return (
      <ScrollView>
        <View style={{ marginTop: 20 }}>
          {amenitiesArray.map((val,index) => <DisplayAmenities key={index} name={val} /> )}
        </View>
      </ScrollView>
    );

score:1

  {amenitiesArray.map(val => 
    <DisplayAmenities name={val} />;
  )}

Related Query

More Query from same tag