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.19k stars 952 forks source link

Modal no longer appears after upgrade #1798

Open perry-mitchell opened 7 months ago

perry-mitchell commented 7 months ago

πŸ› Bug Report

After upgrading to RN 0.72.1 (and then to 0.72.7), <Modal> stopped rendering at all, showing the message:

2023-12-04 22:30:51.041073+0200 Buttercup[54956:1958733] [Presentation] Attempt to present <RCTModalHostViewController: 0x7ff7a42918a0> on <UIViewController: 0x7ff7e62089f0> (from <RNSScreen: 0x7ff7a46633a0>) which is already presenting <RCTModalHostViewController: 0x7ff7a42b1ac0>.

The modal never appears and then the app freezes. Sometimes it does appear, but some long time after having set it to visible.

https://github.com/akveo/react-native-ui-kitten/assets/3869469/0ad5b9e6-e98e-46b9-bc14-f6df8f72f4b9

UI Kitten and Eva version

Package Version
@eva-design/eva 2.2.0
@ui-kitten/components 5.3.1

Environment information

  System:
    OS: macOS 12.6.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  Binaries:
    Node: 20.10.0 - /usr/local/bin/node
    npm: 10.2.3 - /usr/local/bin/npm
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK:
      API Levels: 23, 26, 28, 29, 30, 31, 32, 33
      Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 33.0.0
      System Images: android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
      Android NDK: 22.1.7171670
  IDEs:
    Android Studio: 2022.3 AI-223.8836.35.2231.11090377
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  npmPackages:
    react: 18.2.0 => 18.2.0
    react-native: 0.72.7 => 0.72.7

Looks like a similar issue here: https://github.com/aksonov/react-native-router-flux/issues/2563