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

IOS Modal causes app to lose interactions after is closes, some how it's leaving a UITransitionView that is covering the whole app, reproducible on freshly installed '63.2' apps. #29973

Closed
a-eid opened this issue Sep 17, 2020 · 3 comments
Labels
Component: Modal Needs: Triage 🔍 Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@a-eid
Copy link

a-eid commented Sep 17, 2020

simply when triggering a Modal open & then close it some how leaves behind a UITransitionView for some reason and all interactions with the app is lost

also you would need to reinstall the app completely or compile it with xCode for it to work correctly again.

React Native version:

System:
    OS: macOS 10.15.5
    CPU: (8) x64 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
    Memory: 5.92 GB / 32.00 GB
    Shell: 5.8 - /usr/local/bin/zsh
  Binaries:
    Node: 14.9.0 - ~/.n/bin/node
    Yarn: 1.22.5 - /usr/local/bin/yarn
    npm: 6.14.8 - ~/.n/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.9.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    Android SDK:
      API Levels: 28, 29
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.0      System Images: android-25 | Google Play Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.0 AI-193.6911.18.40.6514223
    Xcode: 11.5/11E608c - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_242-release - /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/javac
    Python: 3.8.3 - /Users/ahmedeid/.pyenv/shims/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.2 => 0.63.2 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

a simple component to show / hide a modal

import * as React from 'react';
import {Text, SafeAreaView, TouchableOpacity, Modal} from 'react-native';

export function App() {
  const [visible, setVisible] = React.useState<boolean>(false);

  return (
    <SafeAreaView>
      <TouchableOpacity onPress={() => setVisible(true)}>
        <Text>Show</Text>
      </TouchableOpacity>

      <Modal visible={visible}>
        <TouchableOpacity
          style={{flex: 1, backgroundColor: 'red'}}
          onPress={() => setVisible(false)}>
          <Text>Show</Text>
        </TouchableOpacity>
      </Modal>
    </SafeAreaView>
  );
}

expected results.

I expect the Modal to be dismissed completely and once it is all app interactions should be back to normal.

@a-eid
Copy link
Author

a-eid commented Sep 17, 2020

sometimes the logbox trigger the same issue, I'm not sure but something else does trigger this issue somehow. ( can't reproduce it.)

on some errors is reoccurs but I can't reproduce it sadly ( happens on the main app I'm working on . ).

@a-eid a-eid changed the title IOS Modals related issue IOS Modal causes app to lose interactions after is closes, some how it's leaving a UITransitionView that is covering the whole app, reproducible on freshly installed '63.2' apps. Sep 17, 2020
@a-eid
Copy link
Author

a-eid commented Sep 17, 2020

tried it again it worked for some reason. ...

@sunnylqm
Copy link
Contributor

sunnylqm commented Sep 23, 2020

Duplicated #29492 (comment)

@facebook facebook locked as resolved and limited conversation to collaborators Oct 1, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: Modal Needs: Triage 🔍 Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants