import React from 'react' ; import { Text , View , StyleSheet } from 'react-native' ; interface ArrayProps { list : string [ ] ; } export const Array = ( { list } ) => ( < View > { list . map ( ( item , index ) => ( < Text key = { index } style = { styles . item } > { item } < /Text>))} < /View>); const styles = StyleSheet . create ( { item : { padding : 8 } , } ) ;