import React, { useState } from 'react'; import { BottomSheet, Button, ListItem } from 'react-native-elements'; import { StyleSheet } from 'react-native'; import { Header } from '../components/header'; type BottomSheetComponentProps = {}; const BottomSheetComponent: React.FunctionComponent = () => { const [isVisible, setIsVisible] = useState(false); const list = [ { title: 'List Item 1' }, { title: 'List Item 2' }, { title: 'Cancel', containerStyle: { backgroundColor: 'red' }, titleStyle: { color: 'white' }, onPress: () => setIsVisible(false), }, ]; return ( <>