import React from 'react';
import { Slide, Button, Box } from '@native-base/v3';
export default function () {
  const [isOpen, setIsOpen] = React.useState(false);

  return (
    <>
      <Button onPress={() => setIsOpen(!isOpen)}>
        Click Me to {isOpen ? 'hide' : 'show'}
      </Button>
      <Slide in={isOpen}>
        <Box p="40px" color="white" mt="4" bg="teal.5" rounded="md">
          Slide
        </Box>
      </Slide>
    </>
  );
}
