MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / setupAccessibleView

Function setupAccessibleView

packages/core/application/helpers.ios.ts:12–25  ·  view source on GitHub ↗
(view: any /* any */)

Source from the content-addressed store, hash-verified

10export function androidSetStartActivity(activity: androidx.appcompat.app.AppCompatActivity): void {}
11
12export function setupAccessibleView(view: any /* any */): void {
13 const uiView = view.nativeViewProtected as UIView;
14 if (!uiView) {
15 return;
16 }
17
18 /**
19 * We need to map back from the UIView to the NativeScript View.
20 *
21 * We do that by setting the uiView's tag to the View's domId.
22 * This way we can do reverse lookup.
23 */
24 uiView.tag = view._domId;
25}

Callers 1

onLoadedFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected