MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / nativeViewFor

Function nativeViewFor

packages/nativescript-inspector/src/index.ts:1425–1433  ·  view source on GitHub ↗
(view: any)

Source from the content-addressed store, hash-verified

1423}
1424
1425function nativeViewFor(view: any): any | null {
1426 return (
1427 view?.nativeViewProtected ??
1428 view?.nativeView ??
1429 view?.ios ??
1430 view?._nativeView ??
1431 null
1432 );
1433}
1434
1435function isNativeScriptView(value: any): value is View {
1436 return Boolean(value && typeof value.eachChildView === "function");

Callers 4

nativeScriptNodeMethod · 0.85
indexNativeScriptViewMethod · 0.85
nativeTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected