如何停止在模型中滚动全身,只有描述应该滚动。本机基础模型

问题描述 投票:0回答:0

在这个有一个输入字段并且属于描述部分,它仍然滚动整个身体但我想做的是,如果我滚动身体输入应该卡在那里但描述应该是可滚动的。

<Modal isOpen={true} onClose={true} size={'xl'}>
    <Modal.Content maxH="500">
      {/* <Modal.CloseButton /> */}
      <Modal.Header>
        <Text textAlign={'center'}>Assigned To Picker</Text>
      </Modal.Header>
      <Modal.Body>
        <View height={100}>
          <HStack flex={1} justifyContent="center">
            <View width={"100%"}>
              <TextInput
                mode="flat"
                label="Email"
                activeUnderlineColor="orange"
                underlineColor="gray"
                backgroundColor="white"
                textColor="black"
                borderRadius={2}
              />
            </View>
          </HStack>
        </View>
        <ScrollView flex={1}>
          <Text>
            Create a 'Return Request' under “My Orders” section of
            App/Website. Follow the screens that come up after tapping on
            the 'Return’ button. Please make a note of the Return ID that we
            genetruerate at the end of the process. Keep the item ready for pick
            up or ship it to us basis on the return mod
          </Text>
        </ScrollView>
      </Modal.Body>
      <Modal.Footer>
        <Button.Group space={2}>
          <Button variant="ghost" colorScheme="blueGray" onPress={() => {
            setModalVisible(false);
          }}>
            Cancel
          </Button>
          <Button onPress={() => {
            setModalVisible(false);
          }}>
            Save
          </Button>
        </Button.Group>
      </Modal.Footer>
    </Modal.Content>
  </Modal>

希望你明白我的意思

reactjs react-native native-base
© www.soinside.com 2019 - 2024. All rights reserved.