MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / getTabById

Function getTabById

packages/core/ui/tab-view/index.android.ts:36–44  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

34}
35
36function getTabById(id: number): TabView {
37 const ref = tabs.find((ref) => {
38 const tab = ref.get();
39
40 return tab && tab._domId === id;
41 });
42
43 return ref && ref.get();
44}
45
46function initializeNativeClasses() {
47 if (PagerAdapter) {

Callers 1

onCreateMethod · 0.85

Calls 2

findMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected