gluestack

gluestack Logogluestack

ActionSheet not open

luizpcam posted this in #support
Open in Discord
Avatar
luizpcamOP
I installed ActionSheet and tried to use but not worked, just not appears when i set isOpen property to true. Im using in React Native.

Check my simple code below:
const [openSheet, setOpenSheet] = useState(false);
  return (
    <VStack className="relative">
      <FormField label={<FormLabel>Modelo</FormLabel>}>
        <Button onPress={() => setOpenSheet(true)}>TESTE</Button>
      </FormField>

      <Actionsheet isOpen={openSheet}>
        <ActionsheetBackdrop />
        <ActionsheetContent>
          <ActionsheetDragIndicatorWrapper>
            <ActionsheetDragIndicator />
          </ActionsheetDragIndicatorWrapper>
          <ActionsheetItem>
            <ActionsheetItemText />
          </ActionsheetItem>
        </ActionsheetContent>
      </Actionsheet>
    </VStack>
  );

1 Reply