import React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import { Element } from './Element'; import { ElementProps } from './ElementTypes'; import { Box, Column, Divider } from 'native-base'; type ElementListProps = { elements: ElementProps[]; style?: StyleProp; }; const ElementList = ({ elements, style }: ElementListProps) => { const elementStyle = { borderRadius: 10, shadowOpacity: 0.3, shadowRadius: 4.65, elevation: 8, backgroundColor: 'transparent', overflow: 'hidden', } as const; return ( {elements.map((element, index) => ( {index < elements.length - 1 && } ))} ); }; export default ElementList;