Skip to content

Conversation

tido64
Copy link
Collaborator

@tido64 tido64 commented Jan 30, 2020

Summary

Attaches the loading view to a UIScene in apps using the new Scenes API (iOS 13+).

Changelog

[iOS] [Fixed] - Fix RCTDevLoadingView not showing up with UIScene

Test Plan

Create a new app based on UIScene and integrate React Native.

Before After
image image

@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 Jan 30, 2020
@react-native-bot react-native-bot added Bug Platform: iOS iOS applications. labels Jan 30, 2020
@tido64
Copy link
Collaborator Author

tido64 commented Feb 13, 2020

cc @hramos

@hramos hramos self-assigned this Feb 20, 2020
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 8ce27df.

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

@react-native-bot react-native-bot added Merged This PR has been merged. and removed Needs: Imported Diff Waiting on Meta labels Feb 20, 2020
@tido64 tido64 deleted the tido/fix-loading-view-uiscene branch February 21, 2020 06:52
@hramos
Copy link
Contributor

hramos commented Feb 25, 2020

Sorry @tido64, this was reverted in 8c10147. Appears one of our internal apps ran into the following error:

stderr: React/DevSupport/RCTDevLoadingView.m:99:7: error: unknown type name 'UIWindowScene'; did you mean 'UIWindowLevel'?
      UIWindowScene *scene = (UIWindowScene *)RCTSharedApplication().connectedScenes.anyObject;
      ^~~~~~~~~~~~~
      UIWindowLevel

I'll have to take a look and see why this particular app has this issue.

facebook-github-bot pushed a commit that referenced this pull request Feb 27, 2020
Summary:
Attaches the loading view to a `UIScene` in apps using the new Scenes API (iOS 13+).

## Changelog

[iOS] [Fixed] - Fix RCTDevLoadingView not showing up with UIScene
Pull Request resolved: #27916

Test Plan:
Create a new app based on UIScene and integrate React Native.

| Before | After  |
|:------:|:------:|
 | <img width="453" alt="image" src="https://user-images.githubusercontent.com/4123478/73485717-eccfe800-43a3-11ea-96fd-f7077a348345.png"> | <img width="453" alt="image" src="https://user-images.githubusercontent.com/4123478/73485749-f9ecd700-43a3-11ea-8a18-2e2185e62e78.png"> |

Reviewed By: PeteTheHeat

Differential Revision: D20104655

Pulled By: hramos

fbshipit-source-id: 86c1902c00f791fd23f75ea7562b44c92e719c5e
@hramos
Copy link
Contributor

hramos commented Feb 28, 2020

Tying loose ends here: I was able to get this change merged again in a separate commit.

osdnk pushed a commit to osdnk/react-native that referenced this pull request Mar 9, 2020
Summary:
Attaches the loading view to a `UIScene` in apps using the new Scenes API (iOS 13+).

## Changelog

[iOS] [Fixed] - Fix RCTDevLoadingView not showing up with UIScene
Pull Request resolved: facebook#27916

Test Plan:
Create a new app based on UIScene and integrate React Native.

| Before | After  |
|:------:|:------:|
 | <img width="453" alt="image" src="https://user-images.githubusercontent.com/4123478/73485717-eccfe800-43a3-11ea-96fd-f7077a348345.png"> | <img width="453" alt="image" src="https://user-images.githubusercontent.com/4123478/73485749-f9ecd700-43a3-11ea-8a18-2e2185e62e78.png"> |

Reviewed By: cpojer

Differential Revision: D20008608

Pulled By: hramos

fbshipit-source-id: ce59fd0b000d7dee51985a5533d9b5791687f592
osdnk pushed a commit to osdnk/react-native that referenced this pull request Mar 9, 2020
Summary:
Attaches the loading view to a `UIScene` in apps using the new Scenes API (iOS 13+).

## Changelog

[iOS] [Fixed] - Fix RCTDevLoadingView not showing up with UIScene
Pull Request resolved: facebook#27916

Test Plan:
Create a new app based on UIScene and integrate React Native.

| Before | After  |
|:------:|:------:|
 | <img width="453" alt="image" src="https://user-images.githubusercontent.com/4123478/73485717-eccfe800-43a3-11ea-96fd-f7077a348345.png"> | <img width="453" alt="image" src="https://user-images.githubusercontent.com/4123478/73485749-f9ecd700-43a3-11ea-8a18-2e2185e62e78.png"> |

Reviewed By: PeteTheHeat

Differential Revision: D20104655

Pulled By: hramos

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

Labels

Bug 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. Reverted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants