function App() {const [showActionsheet, setShowActionsheet] = React.useState(false)const handleClose = () => setShowActionsheet(!showActionsheet)return (<KeyboardAvoidingViewbehavior={Platform.OS === "ios" ? "height" : "height"}style={{ flex: 1, zIndex: 999 }}><Center h="100%" zIndex={999}><Button onPress={handleClose}><Button.Text>Open</Button.Text></Button><ActionsheetisOpen={showActionsheet}onClose={handleClose}zIndex={999}><ActionsheetBackdrop /><ActionsheetContent maxHeight="75%" zIndex={999}><ActionsheetDragIndicatorWrapper><ActionsheetDragIndicator /></ActionsheetDragIndicatorWrapper><VStack w="$full" p={20}><HStack justifyContent="center" alignItems="center" space="md"><Boxw={50}h="$full"px="$2"borderWidth={1}borderStyle="solid"borderColor="$borderLight300"rounded="$sm"><Imagesource={{ uri: "https://i.imgur.com/UwTLr26.png" }}flex={1}resizeMode="contain"/></Box><VStack flex={1}><Text fontWeight="$bold">Mastercard</Text><Text>Card ending in 2345</Text></VStack></HStack><FormControl mt={36}><FormControlLabel><FormControlLabelText>Confirm security code</FormControlLabelText></FormControlLabel><Input w="$full"><InputSlot><InputIcon as={InputIcon} ml="$2" /></InputSlot><InputField placeholder="CVC/CVV" /></Input><Button onPress={handleClose} mt={20}><ButtonText>Pay $1000</ButtonText></Button></FormControl></VStack></ActionsheetContent></Actionsheet></Center></KeyboardAvoidingView>)}
import { KeyboardAvoidingView } from '@gluestack-ui/themed';
export default () => <KeyboardAvoidingView></KeyboardAvoidingView>
Name | Value | Default |
---|---|---|
children | any | - |