Uh oh!
There was an error while loading. Please reload this page.
feat: allow custom assignment of rootView to rootViewController - #37873
feat: allow custom assignment of rootView to rootViewController#37873Gregoirevda wants to merge 4 commits into
Conversation
Base commit: b0485be |
cipolleschi
left a comment
There was a problem hiding this comment.
Hi @Gregoirevda! Thank you so much for this PR. I'm super excited that you took some time to add this new feature to RCTAppDelegate. 😄
I left a few comments to align it more to standard iOS conventions, but overall the approach looks good to me!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Riccardo Cipolleschi <riccardo.cipolleschi@gmail.com>
Gregoirevda
commented
Jun 14, 2023
Hi @cipolleschi |
cipolleschi
left a comment
There was a problem hiding this comment.
It looks good to me! Thanks again for the enhancement!
facebook-github-bot
commented
Jun 15, 2023
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request was successfully merged by @Gregoirevda in abc6e1c. When will my fix make it into a release? | Upcoming Releases |
facebook-github-bot
commented
Jun 15, 2023
@cipolleschi merged this pull request in abc6e1c. |
* main: (135 commits) translation auto-update for i18n/twilight.config.json on master Interop: Introduce Bridge proxy Remove okhttp internal util usage (react#37843) Update debian to fix CI while updating Node (react#37841) fix: foreground ripple crash on api < 23 (react#37901) Re-add the top level LICENSE file (react#37916) Deploy 0.209.0 to xplat (react#37921) Re-enable direct debugging with JSC on iOS 16.4+ (react#37914) add emitObjectProp in parser primitives (react#37904) Make React-utils its own pod (react#37659) feat: allow custom assignment of rootView to rootViewController (react#37873) Switch xplat prettier config to hermes plugin (react#37915) Set iOS AppState to inactive when app is launching (react#37690) Use `fileExists` in replace_hermes script (react#37911) (docs): fix license url (react#37909) Revert D46719890: Re-enable direct debugging with JSC on iOS 16.4+ Re-enable direct debugging with JSC on iOS 16.4+ (react#37874) Fix component type references in xplat (react#37903) Remove usage of passthroughAnimatedPropExplicitValues in ScrollViewStickyHeader (react#37867) test runtime lifecycle callback (react#37897) ...
Summary:
To use a native Drawer on iPad, I can override
createRootViewControllerto create aUISplitViewControllerinstead of aUIViewController, but I then need to assign the rootView withwhich I can currently only do by copy pasting the entire
didFinishLaunchingWithOptionsand only replacing the assignmentIn an attempt of making it easier for developers to use a native drawer in iOS, being able to override the assignment would make it easier.
Changelog:
[iOS] [ADDED] - added override method with default implementation
Test Plan
Tested on iPad iOS 16 simulator