René's URL Explorer Experiment


Title: feat(core): Added flexibility for using multiple RootLayouts by CatchABus · Pull Request #10684 · NativeScript/NativeScript · GitHub

Open Graph Title: feat(core): Added flexibility for using multiple RootLayouts by CatchABus · Pull Request #10684 · NativeScript/NativeScript

X Title: feat(core): Added flexibility for using multiple RootLayouts by CatchABus · Pull Request #10684 · NativeScript/NativeScript

Description: PR Checklist The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#commit-messages. There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it. You have signed the CLA. All existing tests are passing: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/DevelopmentWorkflow.md#running-unit-tests-application. Tests for the changes are included - https://github.com/NativeScript/NativeScript/blob/master/tools/notes/WritingUnitTests.md. What is the new behavior? This PR adds flexibility for multiple RootLayouts and the getRootLayoutById function to retrieve one using its view id. Core will keep a root layout stack just like it does with Frames. Also, existing getRootLayout function will return the first RootLayout in the view tree. Additionally: Improved error messages Fixed a problem that caused a shade cover with gradient not to switch to a colored one Added iOS view disposal support to get rid of native gradient layer when needed Now, shade cover will calculate its insert index based on existing popup views

Open Graph Description: PR Checklist The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#commit-messages. There is an issue for the bug/feature this...

X Description: PR Checklist The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#commit-messages. There is an issue for the bug/feature this...

Opengraph URL: https://github.com/NativeScript/NativeScript/pull/10684

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5d9f78e7-137b-372f-636a-321e4f08e522
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB4F2:1912EF:6908D7:8B54E0:6A5B77AE
html-safe-nonce63e26ae0badb17031d21dac5cb4ade8636877222dbab9fdf5e6665a4cd268bcf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEYyOjE5MTJFRjo2OTA4RDc6OEI1NEUwOjZBNUI3N0FFIiwidmlzaXRvcl9pZCI6IjY5NzY4NTQ5NzAzMDM0Nzc2NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1dd230e2dd30b01866a23a7cc7ae637439282afd28d2220860fb3901a8815b2a
hovercard-subject-tagpull_request:2310131520
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/NativeScript/pull/10684/files
twitter:imagehttps://avatars.githubusercontent.com/u/55595100?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/55595100?s=400&v=4
og:image:altPR Checklist The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#commit-messages. There is an issue for the bug/feature this...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id31492490
octolytics-dimension-repository_nwoNativeScript/NativeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31492490
octolytics-dimension-repository_network_root_nwoNativeScript/NativeScript
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/NativeScript/pull/10684/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fpull%2F10684%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fpull%2F10684%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2FNativeScript
Reloadhttps://github.com/NativeScript/NativeScript/pull/10684/files
Reloadhttps://github.com/NativeScript/NativeScript/pull/10684/files
Reloadhttps://github.com/NativeScript/NativeScript/pull/10684/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/10684/files
NativeScript https://github.com/NativeScript
NativeScripthttps://github.com/NativeScript/NativeScript
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/10684/files
Notifications https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Fork 1.7k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Star 25.6k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Code https://github.com/NativeScript/NativeScript
Issues 771 https://github.com/NativeScript/NativeScript/issues
Pull requests 68 https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security and quality 0 https://github.com/NativeScript/NativeScript/security
Insights https://github.com/NativeScript/NativeScript/pulse
Code https://github.com/NativeScript/NativeScript
Issues https://github.com/NativeScript/NativeScript/issues
Pull requests https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security and quality https://github.com/NativeScript/NativeScript/security
Insights https://github.com/NativeScript/NativeScript/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2FNativeScript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2FNativeScript%2Fissues%2Fnew%2Fchoose
NathanWalkerhttps://github.com/NathanWalker
NativeScript:mainhttps://github.com/NativeScript/NativeScript/tree/main
CatchABus:feat/multi-rootlayouthttps://github.com/CatchABus/NativeScript/tree/feat/multi-rootlayout
Conversation 1 https://github.com/NativeScript/NativeScript/pull/10684
Commits 7 https://github.com/NativeScript/NativeScript/pull/10684/commits
Checks 0 https://github.com/NativeScript/NativeScript/pull/10684/checks
Files changed https://github.com/NativeScript/NativeScript/pull/10684/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/10684/files
feat(core): Added flexibility for using multiple RootLayouts https://github.com/NativeScript/NativeScript/pull/10684/files#top
Show all changes 7 commits https://github.com/NativeScript/NativeScript/pull/10684/files
9f56ed5 feat(core): Added support for multiple RootLayouts CatchABus Jan 31, 2025 https://github.com/NativeScript/NativeScript/pull/10684/commits/9f56ed51b1e251d8ffde1d36b9e8a41a59dd12c0
676de6d fix: Function for getting rootlayout should return first layout in vi… CatchABus Jan 31, 2025 https://github.com/NativeScript/NativeScript/pull/10684/commits/676de6d341c926e596b836215c30d95a113d0045
1675b7b chore: Comment correction CatchABus Jan 31, 2025 https://github.com/NativeScript/NativeScript/pull/10684/commits/1675b7b4164161049d4206095244249eb4a8c72b
f06894e fix: Added missing import CatchABus Jan 31, 2025 https://github.com/NativeScript/NativeScript/pull/10684/commits/f06894e1d8cf0f1934134cb000dffa67ecd3a82a
cd54423 fix: Added missing super call for disposing native view CatchABus Jan 31, 2025 https://github.com/NativeScript/NativeScript/pull/10684/commits/cd544232478bdeda6984008e188594ac1649d3ee
6f5e701 chore: Improved comment CatchABus Jan 31, 2025 https://github.com/NativeScript/NativeScript/pull/10684/commits/6f5e7016a8b7825573b86db7ecfb8e651dd0c760
547a354 Merge branch 'main' into feat/multi-rootlayout NathanWalker Feb 2, 2025 https://github.com/NativeScript/NativeScript/pull/10684/commits/547a354823160889a2472683a00941c3d2bd7ba3
Clear filters https://github.com/NativeScript/NativeScript/pull/10684/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/10684/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/10684/files
index.d.ts https://github.com/NativeScript/NativeScript/pull/10684/files#diff-2a6d693c3a141ef4245090668461a06659331f08fceabea56e521589fff7849a
index.ts https://github.com/NativeScript/NativeScript/pull/10684/files#diff-0b4dba81b56de41b27d96d631b331e72625c7c4511f9a42a8ef210a471976fe7
index.android.ts https://github.com/NativeScript/NativeScript/pull/10684/files#diff-fe28e6903024b5ec2b218cf361b5ea5107d19c0ce7ac5169dd877b024e8aa1e6
index.d.ts https://github.com/NativeScript/NativeScript/pull/10684/files#diff-22248a28775becc3dbc016810a15486abc5ab446ab6eeb9a3027e9003527b066
index.ios.ts https://github.com/NativeScript/NativeScript/pull/10684/files#diff-edd24b4d8228d1c79a157947b80395ce8972ae74991bb40b4f6ac48ec481e56a
root-layout-common.ts https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
root-layout-stack.ts https://github.com/NativeScript/NativeScript/pull/10684/files#diff-4ab0667f3d495ff6b6a3da2291b13ea9cbc84011dcb3ba93a525e69d1487d0f3
packages/core/ui/layouts/index.d.tshttps://github.com/NativeScript/NativeScript/pull/10684/files#diff-2a6d693c3a141ef4245090668461a06659331f08fceabea56e521589fff7849a
View file https://github.com/CatchABus/NativeScript/blob/547a354823160889a2472683a00941c3d2bd7ba3/packages/core/ui/layouts/index.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/10684/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-2a6d693c3a141ef4245090668461a06659331f08fceabea56e521589fff7849a
packages/core/ui/layouts/index.tshttps://github.com/NativeScript/NativeScript/pull/10684/files#diff-0b4dba81b56de41b27d96d631b331e72625c7c4511f9a42a8ef210a471976fe7
View file https://github.com/CatchABus/NativeScript/blob/547a354823160889a2472683a00941c3d2bd7ba3/packages/core/ui/layouts/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/10684/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-0b4dba81b56de41b27d96d631b331e72625c7c4511f9a42a8ef210a471976fe7
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-0b4dba81b56de41b27d96d631b331e72625c7c4511f9a42a8ef210a471976fe7
packages/core/ui/layouts/root-layout/index.android.tshttps://github.com/NativeScript/NativeScript/pull/10684/files#diff-fe28e6903024b5ec2b218cf361b5ea5107d19c0ce7ac5169dd877b024e8aa1e6
View file https://github.com/CatchABus/NativeScript/blob/547a354823160889a2472683a00941c3d2bd7ba3/packages/core/ui/layouts/root-layout/index.android.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/10684/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-fe28e6903024b5ec2b218cf361b5ea5107d19c0ce7ac5169dd877b024e8aa1e6
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-fe28e6903024b5ec2b218cf361b5ea5107d19c0ce7ac5169dd877b024e8aa1e6
packages/core/ui/layouts/root-layout/index.d.tshttps://github.com/NativeScript/NativeScript/pull/10684/files#diff-22248a28775becc3dbc016810a15486abc5ab446ab6eeb9a3027e9003527b066
View file https://github.com/CatchABus/NativeScript/blob/547a354823160889a2472683a00941c3d2bd7ba3/packages/core/ui/layouts/root-layout/index.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/10684/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-22248a28775becc3dbc016810a15486abc5ab446ab6eeb9a3027e9003527b066
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-22248a28775becc3dbc016810a15486abc5ab446ab6eeb9a3027e9003527b066
packages/core/ui/layouts/root-layout/index.ios.tshttps://github.com/NativeScript/NativeScript/pull/10684/files#diff-edd24b4d8228d1c79a157947b80395ce8972ae74991bb40b4f6ac48ec481e56a
View file https://github.com/CatchABus/NativeScript/blob/547a354823160889a2472683a00941c3d2bd7ba3/packages/core/ui/layouts/root-layout/index.ios.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/10684/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-edd24b4d8228d1c79a157947b80395ce8972ae74991bb40b4f6ac48ec481e56a
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-edd24b4d8228d1c79a157947b80395ce8972ae74991bb40b4f6ac48ec481e56a
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-edd24b4d8228d1c79a157947b80395ce8972ae74991bb40b4f6ac48ec481e56a
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-edd24b4d8228d1c79a157947b80395ce8972ae74991bb40b4f6ac48ec481e56a
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-edd24b4d8228d1c79a157947b80395ce8972ae74991bb40b4f6ac48ec481e56a
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-edd24b4d8228d1c79a157947b80395ce8972ae74991bb40b4f6ac48ec481e56a
packages/core/ui/layouts/root-layout/root-layout-common.tshttps://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
View file https://github.com/CatchABus/NativeScript/blob/547a354823160889a2472683a00941c3d2bd7ba3/packages/core/ui/layouts/root-layout/root-layout-common.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/10684/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
https://github.com/NativeScript/NativeScript/pull/10684/files#diff-59a81d4b506e50a4eabd984ee2e443ec5362e0c811c6c7b1a2f41d7b7b581f94
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/10684/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.