Skip to content

Conversation

@tido64
Copy link
Collaborator

@tido64 tido64 commented Feb 21, 2020

Summary

RCTRedBox doesn't appear in apps implementing UISceneDelegate.

Changelog

[iOS] [Changed] - RCTKeyWindow() is now multi-window aware
[iOS] [Fixed] - RCTRedBox doesn't appear in apps implementing UISceneDelegate

Test Plan

  • Trigger an error in RNTester
  • Trigger an error in an app implementing UISceneDelegate

Simulator Screen Shot - iPhone 11 Pro Max - 2020-02-21 at 14 17 54

@tido64 tido64 requested a review from shergin as a code owner February 21, 2020 13:22
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Microsoft Partner: Microsoft Partner labels Feb 21, 2020
@react-native-bot react-native-bot added the Platform: iOS iOS applications. label Feb 21, 2020
@analysis-bot
Copy link

RNTester (Android/hermes/arm64-v8a): 3291136 bytes
RNTester (Android/hermes/armeabi-v7a): 3131392 bytes
RNTester (Android/hermes/x86): 3461120 bytes
RNTester (Android/hermes/x86_64): 3426304 bytes
RNTester (Android/jsc/arm64-v8a): 4446208 bytes
RNTester (Android/jsc/armeabi-v7a): 4268032 bytes
RNTester (Android/jsc/x86): 4360192 bytes
RNTester (Android/jsc/x86_64): 4646912 bytes

@analysis-bot
Copy link

RNTester.app (iOS): 10657792 bytes

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @tido64 in d0a32c2.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Feb 27, 2020
@tido64 tido64 deleted the tido/rctredbox-uiscene branch February 28, 2020 13:02
tom-un added a commit to tom-un/react-native that referenced this pull request Mar 6, 2020
Cherry pick facebook#28147 into fork to Make RCTKeyWindow multi-window aware and add UIScene support to RCTRedBox.
tom-un added a commit to microsoft/react-native-macos that referenced this pull request Mar 7, 2020
…IScene support from upstream. (#256)

* Fix manual merge error.

* Fix missing getters from react-native-implementation.macos.js.
Cherry pick facebook#28147 into fork to Make RCTKeyWindow multi-window aware and add UIScene support to RCTRedBox.

* release _window now to ensure its UIKit ivars are dealloc'd on the main thread as the RCTRedBox can be dealloc'd on a background thread
osdnk pushed a commit to osdnk/react-native that referenced this pull request Mar 9, 2020
…RCTRedBox (facebook#28147)

Summary:
`RCTRedBox` doesn't appear in apps implementing `UISceneDelegate`.

## Changelog

[iOS] [Changed] - `RCTKeyWindow()` is now multi-window aware
[iOS] [Fixed] - `RCTRedBox` doesn't appear in apps implementing `UISceneDelegate`
Pull Request resolved: facebook#28147

Test Plan:
- Trigger an error in RNTester
- Trigger an error in an app implementing `UISceneDelegate`

![Simulator Screen Shot - iPhone 11 Pro Max - 2020-02-21 at 14 17 54](https://user-images.githubusercontent.com/4123478/75037702-14066a80-54b5-11ea-9373-b56b467be845.png)

Reviewed By: PeteTheHeat

Differential Revision: D20036399

Pulled By: hramos

fbshipit-source-id: 07d83e985b02296f930114e3c7100c2077e82300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Microsoft Partner: Microsoft Partner Platform: iOS iOS applications.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants