pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/NativeScript/NativeScript/pull/10913.patch

6 @@ export class ProxyViewContainer extends LayoutBase { } // No native view for proxy container. - // @ts-ignore - get ios(): any { + public override get ios(): any { return null; } - // @ts-ignore - get android(): any { + public override get android(): any { return null; } - get isLayoutRequested(): boolean { + public get isLayoutRequested(): boolean { // Always return false so all layout requests from children bubble up. return false; } - public createNativeView() { + public createNativeView(): any { return undefined; } public _getNativeViewsCount(): number { let result = 0; - this.eachChildView((cv) => { - result += cv._getNativeViewsCount(); + this.eachChildView((cv: View) => { + result += (cv as any)._getNativeViewsCount(); return true; }); return result; } - public _eachLayoutView(callback: (View) => void): void { - this.eachChildView((cv) => { + public _eachLayoutView(callback: (view: View) => void): void { + this.eachChildView((cv: View) => { if (!cv.isCollapsed) { - cv._eachLayoutView(callback); + (cv as any)._eachLayoutView(callback); } return true; }); @@ -99,10 +97,10 @@ export class ProxyViewContainer extends LayoutBase { layoutProperties.forEach((propName) => { const proxyPropName = makeProxyPropName(propName); - child[proxyPropName] = child[propName]; + (child as any)[proxyPropName] = (child as any)[propName]; if (this.proxiedLayoutProperties.has(propName)) { - this._applyLayoutPropertyToChild(child, propName, this[propName]); + this._applyLayoutPropertyToChild(child, propName, (this as any)[propName]); } }); @@ -138,7 +136,8 @@ export class ProxyViewContainer extends LayoutBase { const parent = this.parent; if (parent instanceof View) { - return parent._removeViewFromNativeVisualTree(child); + parent._removeViewFromNativeVisualTree(child); + return; } } @@ -191,23 +190,24 @@ export class ProxyViewContainer extends LayoutBase { private _applyLayoutPropertyToChild(child: View, propName: string, value: any) { const proxyPropName = makeProxyPropName(propName); - if (proxyPropName in child) { - if (child[propName] !== child[proxyPropName]) { + const childAny = child as any; + + if (proxyPropName in childAny) { + if (childAny[propName] !== childAny[proxyPropName]) { if (Trace.isEnabled()) { - Trace.write('ProxyViewContainer._applyLayoutPropertyToChild child ' + child + ' has its own value [' + child[propName] + '] for [' + propName + ']', Trace.categories.ViewHierarchy); + Trace.write('ProxyViewContainer._applyLayoutPropertyToChild child ' + child + ' has its own value [' + childAny[propName] + '] for [' + propName + ']', Trace.categories.ViewHierarchy); } return; } } - child[propName] = value; - child[proxyPropName] = value; + childAny[propName] = value; + childAny[proxyPropName] = value; } - // @ts-ignore - public set hidden(value: boolean) { - this.eachChildView((child) => { - child.hidden = value; + public override set hidden(value: boolean): void { + this.eachChildView((child: View) => { + (child as any).hidden = value; return true; }); } From 15fbca80e99a14fe67adbe0f53a63fc9b7b72a0b Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Wed, 5 Nov 2025 11:10:32 -0800 Subject: [PATCH 5/5] chore: cleanup --- packages/core/ui/proxy-view-container/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/core/ui/proxy-view-container/index.ts b/packages/core/ui/proxy-view-container/index.ts index 1ab6ff8b94..8a948a01d8 100644 --- a/packages/core/ui/proxy-view-container/index.ts +++ b/packages/core/ui/proxy-view-container/index.ts @@ -217,7 +217,6 @@ export class ProxyViewContainer extends LayoutBase { const layoutProperties = ['left', 'top', 'dock', 'flexDirection', 'flexWrap', 'justifyContent', 'alignItems', 'alignContent', 'order', 'flexGrow', 'flexShrink', 'flexWrapBefore', 'alignSelf', 'flexFlow', 'flex', 'column', 'columnSpan', 'col', 'colSpan', 'row', 'rowSpan']; for (const name of layoutProperties) { - // CORRECTION: Changed Property<..., string> to Property<..., any> const proxyProperty = new Property({ name, valueChanged(target, oldValue, value) { @@ -227,7 +226,6 @@ for (const name of layoutProperties) { proxyProperty.register(ProxyViewContainer); } -// CORRECTION: Added types for the function parameter and return value -function makeProxyPropName(propName: string): string { +function makeProxyPropName(propName: string) { return `_proxy:${propName}`; } pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy