gluestack

gluestack Logogluestack

Modal stretching past screen

ryry3787 posted this in #support
Open in Discord
Avatar
ryry3787OP
My app (react native) has a modal that contains lengthy content. The issue is that the modal starts overflowing past the screen and cuts off UI.

I am trying to limit the height which the modal grows. What is the best approach for this? I tried adding SafeAreaView or ScrollView, or setting a max height, but none of the options worked for me.

Sample code:
   <Modal>
      <ModalBackdrop />
      <ModalContent>
        <ModalHeader>
        { ... }
        </ModalHeader>
        <ModalBody>{ Long content }</ModalBody>
        <ModalFooter>
         { ... }
        </ModalFooter>
      </ModalContent>
    </Modal>
Image

1 Reply