akveo / react-native-ui-kitten

:boom: React Native UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode
https://akveo.github.io/react-native-ui-kitten/
MIT License
10.27k stars 951 forks source link

Select appears under Modal #668

Closed andrewanderson58 closed 4 years ago

andrewanderson58 commented 4 years ago

Issue type

I'm submitting a ... (check one with "x")

Issue description

Current behavior: I added a basic Select inside a modal from react-native-modal and when selecting the drop down to show the items nothing appears (symbol turns). If I then close my dialog I can see the select options on the page.

Expected behavior: The select should render on top of the modal. Other input fields do from ui-kitten

Steps to reproduce: Add the following select inside a <Modal></Modal>

          <Select
            data={[{text: 'male'}, {text: 'female'}, {text: 'other'}]}
            selectedOption={gender}
            onSelect={val => console.log(val)}
            tyle={styles.select}
          />

Related code: Screen Shot 2019-10-08 at 4 11 20 PM Screen Shot 2019-10-08 at 4 11 29 PM

insert short code snippets here

Other information:

OS, device, package version

UI Kitten 4.2.0
RN 0.61.1
artyorsh commented 4 years ago

Hi @andrewanderson58 👋 Thanks for report. Can you please share the related code when using Modal? Btw, UI Kitten uses its own Modal implementation, which Select also relies on. Please try using our implementation of Modal and see if it is reproduced.

28harishkumar commented 4 years ago

This bug is still there in latest version

artyorsh commented 4 years ago

@28harishkumar

UI Kitten uses its own Modal implementation, which Select also relies on. Please try using our implementation of Modal and see if it is reproduced.

So can you please provide the related code?

bsor-dev commented 4 years ago

Same here, happens when using react-native Modal

artyorsh commented 4 years ago

@rosnaib11

UI Kitten uses its own Modal implementation, which Select also relies on. Please try using our implementation of Modal and see if it is reproduced.

msvargas commented 3 years ago

I fixed wrapping ModalPanel with React Native Modal

example:

.... others imports
import { Text, ModalPanel } from '@ui-kitten/components';

const MyModal = () => <Modal><ModalPanel><Text>Select HERE </Text><ModalPanel> </Modal>