Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select items is not visible using react-native-navigation #1288

Open
rnyschyi opened this issue Nov 14, 2020 · 6 comments
Open

Select items is not visible using react-native-navigation #1288

rnyschyi opened this issue Nov 14, 2020 · 6 comments

Comments

@rnyschyi
Copy link

🐛 Bug Report

To Reproduce

Steps to reproduce the behavior:

Expected behavior

I open select in one app screen, but see items on other.

image
image

Link to runnable example or repository (highly encouraged)

UI Kitten and Eva version

Package Version
@eva-design/eva 2.0.0
@ui-kitten/components 5.0.0

Environment information

 System:
    OS: macOS 11.0.1
    CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
  Binaries:
    Node: 12.14.1 - ~/.nvm/versions/node/v12.14.1/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.13.4 - ~/.nvm/versions/node/v12.14.1/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 14.2, DriverKit 20.0, macOS 11.0, tvOS 14.2, watchOS 7.1
  IDEs:
    Android Studio: 4.0 AI-193.6911.18.40.6626763
    Xcode: 12.2/12B45b - /usr/bin/xcodebuild
  npmPackages:
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.3 => 0.63.3 
@SreevatsaAcharya
Copy link

@rnyschyi , hey i am facing the same issue, did you figure out any fix?

@rnyschyi
Copy link
Author

@SreevatsaAcharya hi, we just moved to react navigation and it works well

@SreevatsaAcharya
Copy link

@SreevatsaAcharya hi, we just moved to react navigation and it works well

@rnyschyi . Hmmmm, our project is deeply integrated with React native navigation and ui kitten right now.

I have a form that has varied components like select and autocomplete which work fine right now.
I introduced a new component that requires me to open a modal or a new screen to select values.

The observation is that if i move to a new screen >> close it and come back to continue fill rest of the data in the form all components having a popover stop working .

Any suggestions?

@whitestranger7
Copy link
Contributor

@SreevatsaAcharya hi, we just moved to react navigation and it works well

@rnyschyi . Hmmmm, our project is deeply integrated with React native navigation and ui kitten right now.

I have a form that has varied components like select and autocomplete which work fine right now.
I introduced a new component that requires me to open a modal or a new screen to select values.

The observation is that if i move to a new screen >> close it and come back to continue fill rest of the data in the form all components having a popover stop working .

Any suggestions?

Hey, @SreevatsaAcharya. Im trying to help you right now with your case. Unfortunately, I can't reproduce the issue. Can you please provide more information about the issue? It also would be great if you can attach some code related to both screens you're dealing with and navigation stack implementation.

@fdelacruzsoto
Copy link

@whitestranger7 you can do this to reproduce the issue:

  1. Create a new react native project with the cli.
  2. Follow the instructions here to add react native navigation to the project https://wix.github.io/react-native-navigation/docs/installing
  3. Add two screens with bottom tabs following this example https://wix.github.io/react-native-navigation/docs/bottomTabs
  4. Add ui-kitten to the project and follow its recommendations for performance improvement https://akveo.github.io/react-native-ui-kitten/docs/guides/improving-performance#improving-performance
  5. In one of the screens add select, datepicker or a modal, the issue should be reproducible there.
  6. You can add a button and push another screen, then there you can add select, datepicker or a modal and the issue should be reproducible there too.

I have the exact same issue with those popover components, for now I moved to use some other components, but I'd really like to continue using ui kitten components in my app.

@MateWW
Copy link

MateWW commented Jan 16, 2022

As a workaround, you can wrap modal content with another ApplicationProvider but it's not perfect as the position of popovers is wrong. In my opinion, problems are caused by rendering popovers in the root of the application, and when react-navigation is using native modals that are by default over the root app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants