@symbiote-native/engine 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +124 -0
- package/build/accessibility-info/index.android.d.ts +3 -0
- package/build/accessibility-info/index.android.js +166 -0
- package/build/accessibility-info/index.d.ts +1 -0
- package/build/accessibility-info/index.ios.d.ts +3 -0
- package/build/accessibility-info/index.ios.js +219 -0
- package/build/accessibility-info/index.js +5 -0
- package/build/accessibility-info/shared.d.ts +34 -0
- package/build/accessibility-info/shared.js +13 -0
- package/build/action-sheet-ios/index.d.ts +36 -0
- package/build/action-sheet-ios/index.js +74 -0
- package/build/alert/index.android.d.ts +5 -0
- package/build/alert/index.android.js +117 -0
- package/build/alert/index.d.ts +1 -0
- package/build/alert/index.ios.d.ts +7 -0
- package/build/alert/index.ios.js +83 -0
- package/build/alert/index.js +8 -0
- package/build/alert/shared.d.ts +19 -0
- package/build/alert/shared.js +17 -0
- package/build/animated/animated-component-shared.d.ts +5 -0
- package/build/animated/animated-component-shared.js +54 -0
- package/build/animated/animation.d.ts +9 -0
- package/build/animated/animation.js +6 -0
- package/build/animated/animations/base.d.ts +27 -0
- package/build/animated/animations/base.js +90 -0
- package/build/animated/animations/composition.d.ts +38 -0
- package/build/animated/animations/composition.js +236 -0
- package/build/animated/animations/decay.d.ts +22 -0
- package/build/animated/animations/decay.js +65 -0
- package/build/animated/animations/raf.d.ts +5 -0
- package/build/animated/animations/raf.js +39 -0
- package/build/animated/animations/spring-config.d.ts +6 -0
- package/build/animated/animations/spring-config.js +55 -0
- package/build/animated/animations/spring.d.ts +50 -0
- package/build/animated/animations/spring.js +207 -0
- package/build/animated/animations/timing.d.ts +27 -0
- package/build/animated/animations/timing.js +101 -0
- package/build/animated/animations/tracking.d.ts +14 -0
- package/build/animated/animations/tracking.js +43 -0
- package/build/animated/bezier.d.ts +1 -0
- package/build/animated/bezier.js +101 -0
- package/build/animated/color.d.ts +37 -0
- package/build/animated/color.js +183 -0
- package/build/animated/easing.d.ts +20 -0
- package/build/animated/easing.js +96 -0
- package/build/animated/event.d.ts +36 -0
- package/build/animated/event.js +252 -0
- package/build/animated/graph.d.ts +38 -0
- package/build/animated/graph.js +227 -0
- package/build/animated/index.d.ts +20 -0
- package/build/animated/index.js +28 -0
- package/build/animated/interpolation-node.d.ts +16 -0
- package/build/animated/interpolation-node.js +57 -0
- package/build/animated/interpolation.d.ts +22 -0
- package/build/animated/interpolation.js +199 -0
- package/build/animated/mock.d.ts +56 -0
- package/build/animated/mock.js +127 -0
- package/build/animated/native/native-animated.d.ts +43 -0
- package/build/animated/native/native-animated.js +146 -0
- package/build/animated/operators.d.ts +80 -0
- package/build/animated/operators.js +266 -0
- package/build/animated/props.d.ts +20 -0
- package/build/animated/props.js +187 -0
- package/build/animated/style.d.ts +26 -0
- package/build/animated/style.js +187 -0
- package/build/animated/value-xy.d.ts +35 -0
- package/build/animated/value-xy.js +106 -0
- package/build/animated/value.d.ts +36 -0
- package/build/animated/value.js +185 -0
- package/build/app-registry/index.d.ts +40 -0
- package/build/app-registry/index.js +144 -0
- package/build/app-state/index.d.ts +16 -0
- package/build/app-state/index.js +105 -0
- package/build/appearance/index.d.ts +12 -0
- package/build/appearance/index.js +84 -0
- package/build/back-handler/index.d.ts +14 -0
- package/build/back-handler/index.js +106 -0
- package/build/commit.d.ts +16 -0
- package/build/commit.js +678 -0
- package/build/debug.d.ts +5 -0
- package/build/debug.js +18 -0
- package/build/dimensions/index.d.ts +28 -0
- package/build/dimensions/index.js +148 -0
- package/build/dispatch.d.ts +2 -0
- package/build/dispatch.js +18 -0
- package/build/events/index.d.ts +1 -0
- package/build/events/index.js +691 -0
- package/build/fabric.d.ts +32 -0
- package/build/fabric.js +59 -0
- package/build/host-instance/index.d.ts +11 -0
- package/build/host-instance/index.js +49 -0
- package/build/i18n-manager/index.d.ts +13 -0
- package/build/i18n-manager/index.js +91 -0
- package/build/index.d.ts +80 -0
- package/build/index.js +72 -0
- package/build/interaction-manager/index.d.ts +45 -0
- package/build/interaction-manager/index.js +222 -0
- package/build/keyboard/index.d.ts +31 -0
- package/build/keyboard/index.js +142 -0
- package/build/layout-animation/index.d.ts +66 -0
- package/build/layout-animation/index.js +183 -0
- package/build/linking/index.android.d.ts +2 -0
- package/build/linking/index.android.js +18 -0
- package/build/linking/index.d.ts +1 -0
- package/build/linking/index.ios.d.ts +2 -0
- package/build/linking/index.ios.js +9 -0
- package/build/linking/index.js +6 -0
- package/build/linking/shared.d.ts +32 -0
- package/build/linking/shared.js +98 -0
- package/build/native-events.d.ts +24 -0
- package/build/native-events.js +129 -0
- package/build/native-modules.d.ts +6 -0
- package/build/native-modules.js +57 -0
- package/build/node.d.ts +36 -0
- package/build/node.js +194 -0
- package/build/pan-responder/index.d.ts +53 -0
- package/build/pan-responder/index.js +353 -0
- package/build/permissions-android/index.d.ts +115 -0
- package/build/permissions-android/index.js +185 -0
- package/build/pixel-ratio/index.d.ts +8 -0
- package/build/pixel-ratio/index.js +27 -0
- package/build/platform/index.android.d.ts +22 -0
- package/build/platform/index.android.js +60 -0
- package/build/platform/index.d.ts +1 -0
- package/build/platform/index.ios.d.ts +18 -0
- package/build/platform/index.ios.js +62 -0
- package/build/platform/index.js +5 -0
- package/build/platform/shared.d.ts +25 -0
- package/build/platform/shared.js +41 -0
- package/build/platform-color.d.ts +19 -0
- package/build/platform-color.js +25 -0
- package/build/post-commit.d.ts +4 -0
- package/build/post-commit.js +16 -0
- package/build/process-aspect-ratio.d.ts +1 -0
- package/build/process-aspect-ratio.js +34 -0
- package/build/process-background-image/index.d.ts +28 -0
- package/build/process-background-image/index.js +557 -0
- package/build/process-box-shadow/index.d.ts +11 -0
- package/build/process-box-shadow/index.js +193 -0
- package/build/process-filter.d.ts +31 -0
- package/build/process-filter.js +304 -0
- package/build/process-font-variant.d.ts +1 -0
- package/build/process-font-variant.js +17 -0
- package/build/process-transform/index.d.ts +5 -0
- package/build/process-transform/index.js +120 -0
- package/build/process-transform-origin/index.d.ts +3 -0
- package/build/process-transform-origin/index.js +108 -0
- package/build/registry.d.ts +31 -0
- package/build/registry.js +145 -0
- package/build/settings/index.d.ts +8 -0
- package/build/settings/index.js +126 -0
- package/build/share/index.android.d.ts +3 -0
- package/build/share/index.android.js +56 -0
- package/build/share/index.d.ts +1 -0
- package/build/share/index.ios.d.ts +3 -0
- package/build/share/index.ios.js +47 -0
- package/build/share/index.js +6 -0
- package/build/share/shared.d.ts +32 -0
- package/build/share/shared.js +32 -0
- package/build/status-bar/index.android.d.ts +5 -0
- package/build/status-bar/index.android.js +83 -0
- package/build/status-bar/index.d.ts +1 -0
- package/build/status-bar/index.ios.d.ts +5 -0
- package/build/status-bar/index.ios.js +66 -0
- package/build/status-bar/index.js +4 -0
- package/build/status-bar/shared.d.ts +22 -0
- package/build/status-bar/shared.js +22 -0
- package/build/style/index.d.ts +1 -0
- package/build/style/index.js +30 -0
- package/build/style-registry/index.d.ts +11 -0
- package/build/style-registry/index.js +165 -0
- package/build/style-sheet/index.d.ts +20 -0
- package/build/style-sheet/index.js +121 -0
- package/build/styles.d.ts +220 -0
- package/build/styles.js +7 -0
- package/build/surface.d.ts +16 -0
- package/build/surface.js +67 -0
- package/build/tags.d.ts +1 -0
- package/build/tags.js +10 -0
- package/build/text-input-state.d.ts +5 -0
- package/build/text-input-state.js +29 -0
- package/build/toast-android/index.d.ts +10 -0
- package/build/toast-android/index.js +108 -0
- package/build/vibration/index.android.d.ts +2 -0
- package/build/vibration/index.android.js +18 -0
- package/build/vibration/index.d.ts +1 -0
- package/build/vibration/index.ios.d.ts +2 -0
- package/build/vibration/index.ios.js +54 -0
- package/build/vibration/index.js +6 -0
- package/build/vibration/shared.d.ts +15 -0
- package/build/vibration/shared.js +68 -0
- package/build/view-config.d.ts +1 -0
- package/build/view-config.js +114 -0
- package/package.json +41 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type IEventSubscription } from '../native-events';
|
|
2
|
+
export type IColorSchemeName = 'light' | 'dark';
|
|
3
|
+
export type IColorSchemePreference = IColorSchemeName | 'unspecified';
|
|
4
|
+
interface IAppearancePreferences {
|
|
5
|
+
colorScheme: IColorSchemeName | null;
|
|
6
|
+
}
|
|
7
|
+
export declare const Appearance: {
|
|
8
|
+
getColorScheme(): IColorSchemeName | null;
|
|
9
|
+
setColorScheme(colorScheme: IColorSchemePreference): void;
|
|
10
|
+
addChangeListener(listener: (preferences: IAppearancePreferences) => void): IEventSubscription;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// Appearance module: reads/sets the device color scheme and reports changes.
|
|
2
|
+
// Native emits the device event `appearanceChanged` ({ colorScheme }) through the
|
|
3
|
+
// device hub; this subscribes via a NativeEventEmitter bound to the Appearance
|
|
4
|
+
// native module (which RN keys its appearance events off of) and re-broadcasts to
|
|
5
|
+
// JS listeners as a plain `{ colorScheme }` payload. Mirrors RN's
|
|
6
|
+
// Libraries/Utilities/Appearance.js, slimmed to the parts we need.
|
|
7
|
+
import { getNativeModule } from '../native-modules';
|
|
8
|
+
import { installDeviceEventHub, NativeEventEmitter, } from '../native-events';
|
|
9
|
+
import { dlog } from '../debug';
|
|
10
|
+
// The native module name RN registers the appearance module under, confirmed from
|
|
11
|
+
// its spec (specs_DEPRECATED/modules/INativeAppearance.js, `TurboModuleRegistry.get('Appearance')`).
|
|
12
|
+
const APPEARANCE_MODULE = 'Appearance';
|
|
13
|
+
// The device event native emits when the system color scheme changes. RN's
|
|
14
|
+
// INativeAppearance spec / Appearance.js.
|
|
15
|
+
const APPEARANCE_CHANGED_EVENT = 'appearanceChanged';
|
|
16
|
+
function isAppearancePreferences(value) {
|
|
17
|
+
return typeof value === 'object' && value !== null && 'colorScheme' in value;
|
|
18
|
+
}
|
|
19
|
+
// Lazily resolved so importing this module has no native side effect: a headless
|
|
20
|
+
// run without a fake __turboModuleProxy still loads it; resolution happens on the
|
|
21
|
+
// first use. `null` when the module isn't linked.
|
|
22
|
+
let appearanceModule;
|
|
23
|
+
let emitter;
|
|
24
|
+
// Cached scheme, kept fresh by the change listener; mirrors RN's `state.appearance`.
|
|
25
|
+
let cachedScheme;
|
|
26
|
+
function getModule() {
|
|
27
|
+
if (appearanceModule === undefined) {
|
|
28
|
+
appearanceModule = getNativeModule(APPEARANCE_MODULE);
|
|
29
|
+
dlog(`Appearance: module ${appearanceModule ? 'resolved' : 'NOT resolved (null)'}`);
|
|
30
|
+
}
|
|
31
|
+
return appearanceModule;
|
|
32
|
+
}
|
|
33
|
+
function getEmitter() {
|
|
34
|
+
if (emitter === undefined) {
|
|
35
|
+
// WHY lazy: install on first subscribe so the hub exists before native emits,
|
|
36
|
+
// without a hard bootstrap-order dependency. Idempotent.
|
|
37
|
+
installDeviceEventHub();
|
|
38
|
+
const module = getModule();
|
|
39
|
+
emitter = new NativeEventEmitter(module ?? undefined);
|
|
40
|
+
// Keep the cached scheme fresh even when nobody is listening, so a later
|
|
41
|
+
// getColorScheme() after a system change reads the new value. RN does the same.
|
|
42
|
+
emitter.addListener(APPEARANCE_CHANGED_EVENT, payload => {
|
|
43
|
+
if (!isAppearancePreferences(payload))
|
|
44
|
+
return;
|
|
45
|
+
dlog(`Appearance: ${APPEARANCE_CHANGED_EVENT} -> ${String(payload.colorScheme)}`);
|
|
46
|
+
cachedScheme = payload.colorScheme;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
return emitter;
|
|
50
|
+
}
|
|
51
|
+
export const Appearance = {
|
|
52
|
+
// The current color scheme, or null when no module is linked / the device is in
|
|
53
|
+
// 'unspecified'. Never throws; a missing module reads as null.
|
|
54
|
+
getColorScheme() {
|
|
55
|
+
const module = getModule();
|
|
56
|
+
if (module === null)
|
|
57
|
+
return null;
|
|
58
|
+
// Ensure the change listener is wired so the cache stays fresh after this read.
|
|
59
|
+
getEmitter();
|
|
60
|
+
if (cachedScheme === undefined)
|
|
61
|
+
cachedScheme = module.getColorScheme();
|
|
62
|
+
return cachedScheme;
|
|
63
|
+
},
|
|
64
|
+
// Override the color scheme (or 'unspecified' to follow the system). No-op when
|
|
65
|
+
// the module isn't linked.
|
|
66
|
+
setColorScheme(colorScheme) {
|
|
67
|
+
const module = getModule();
|
|
68
|
+
if (module === null) {
|
|
69
|
+
dlog('Appearance.setColorScheme -> no module (no-op)');
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
module.setColorScheme(colorScheme);
|
|
73
|
+
cachedScheme = colorScheme === 'unspecified' ? (module.getColorScheme() ?? null) : colorScheme;
|
|
74
|
+
},
|
|
75
|
+
// Subscribe to color-scheme changes. The listener receives `{ colorScheme }`.
|
|
76
|
+
addChangeListener(listener) {
|
|
77
|
+
dlog('Appearance.addChangeListener');
|
|
78
|
+
return getEmitter().addListener(APPEARANCE_CHANGED_EVENT, payload => {
|
|
79
|
+
if (!isAppearancePreferences(payload))
|
|
80
|
+
return;
|
|
81
|
+
listener({ colorScheme: payload.colorScheme });
|
|
82
|
+
});
|
|
83
|
+
},
|
|
84
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type IEventSubscription } from '../native-events';
|
|
2
|
+
declare const BACK_PRESS_EVENT: {
|
|
3
|
+
readonly backPress: "backPress";
|
|
4
|
+
readonly hardwareBackPress: "hardwareBackPress";
|
|
5
|
+
};
|
|
6
|
+
export type IBackPressEventName = (typeof BACK_PRESS_EVENT)[keyof typeof BACK_PRESS_EVENT];
|
|
7
|
+
export type IBackPressHandler = () => boolean | null | undefined | void;
|
|
8
|
+
declare class BackHandlerImpl {
|
|
9
|
+
exitApp(): void;
|
|
10
|
+
addEventListener(_eventName: IBackPressEventName, handler: IBackPressHandler): IEventSubscription;
|
|
11
|
+
removeEventListener(_eventName: IBackPressEventName, handler: IBackPressHandler): void;
|
|
12
|
+
}
|
|
13
|
+
export declare const BackHandler: BackHandlerImpl;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// BackHandler module: intercepts the Android hardware back button. Native emits
|
|
2
|
+
// the device event `hardwareBackPress` through the device hub; this subscribes via a
|
|
3
|
+
// NativeEventEmitter and runs the registered handlers in REVERSE registration order
|
|
4
|
+
// (last-registered first). The first handler to return true consumes the press and
|
|
5
|
+
// stops the chain; if none consume it, the native default fires (the app exits).
|
|
6
|
+
// Android-only by intent: iOS has no hardware back button, so the whole module
|
|
7
|
+
// degrades to a no-op when the native module is absent, matching RN's
|
|
8
|
+
// BackHandler.ios.js stub. Mirrors RN's Libraries/Utilities/BackHandler.android.js.
|
|
9
|
+
import { getNativeModule } from '../native-modules';
|
|
10
|
+
import { installDeviceEventHub, NativeEventEmitter, } from '../native-events';
|
|
11
|
+
import { dlog } from '../debug';
|
|
12
|
+
// The native module name RN registers this under. NOTE: this is the name the
|
|
13
|
+
// INativeDeviceEventManager spec resolves via
|
|
14
|
+
// `TurboModuleRegistry.get('DeviceEventManager')`, NOT the spec filename
|
|
15
|
+
// `INativeDeviceEventManager`. Per the symbiote invariant, a module name is only
|
|
16
|
+
// provable on a real host (a headless fake answers to any name); this name is
|
|
17
|
+
// device-verify-pending (Android). See .docs/native-module-platform-routing.md.
|
|
18
|
+
const DEVICE_EVENT_MANAGER_MODULE = 'DeviceEventManager';
|
|
19
|
+
// The device event native emits when the hardware back button is pressed.
|
|
20
|
+
const DEVICE_BACK_EVENT = 'hardwareBackPress';
|
|
21
|
+
// The public event names callers subscribe to. `backPress` is RN's legacy alias
|
|
22
|
+
// for `hardwareBackPress`; both map to the same chain.
|
|
23
|
+
const BACK_PRESS_EVENT = {
|
|
24
|
+
backPress: 'backPress',
|
|
25
|
+
hardwareBackPress: 'hardwareBackPress',
|
|
26
|
+
};
|
|
27
|
+
// The registry, in registration order. Invoked in reverse on a back press.
|
|
28
|
+
const backPressSubscriptions = [];
|
|
29
|
+
function isHandled(result) {
|
|
30
|
+
return result === true;
|
|
31
|
+
}
|
|
32
|
+
// Lazily resolved so importing this module has no native side effect: a headless
|
|
33
|
+
// run without a fake __turboModuleProxy still loads it; resolution happens on the
|
|
34
|
+
// first use. `null` when the module isn't linked (e.g. iOS).
|
|
35
|
+
let deviceEventManager;
|
|
36
|
+
let emitter;
|
|
37
|
+
function getModule() {
|
|
38
|
+
if (deviceEventManager === undefined) {
|
|
39
|
+
deviceEventManager = getNativeModule(DEVICE_EVENT_MANAGER_MODULE);
|
|
40
|
+
dlog(`BackHandler: module ${deviceEventManager ? 'resolved' : 'NOT resolved (null)'}`);
|
|
41
|
+
}
|
|
42
|
+
return deviceEventManager;
|
|
43
|
+
}
|
|
44
|
+
function getEmitter() {
|
|
45
|
+
if (emitter === undefined) {
|
|
46
|
+
// WHY lazy: install on first subscribe so the hub exists before native emits,
|
|
47
|
+
// without a hard bootstrap-order dependency. Idempotent.
|
|
48
|
+
installDeviceEventHub();
|
|
49
|
+
emitter = new NativeEventEmitter(getModule() ?? undefined);
|
|
50
|
+
// Wire the native back-press event to the reverse-order chain exactly once.
|
|
51
|
+
emitter.addListener(DEVICE_BACK_EVENT, dispatchBackPress);
|
|
52
|
+
}
|
|
53
|
+
return emitter;
|
|
54
|
+
}
|
|
55
|
+
// Run handlers last-registered-first; the first to return true consumes the press
|
|
56
|
+
// and the rest are skipped. If none consume it, fall through to the native default.
|
|
57
|
+
function dispatchBackPress() {
|
|
58
|
+
for (let i = backPressSubscriptions.length - 1; i >= 0; i--) {
|
|
59
|
+
const handler = backPressSubscriptions[i];
|
|
60
|
+
if (handler !== undefined && isHandled(handler())) {
|
|
61
|
+
dlog(`BackHandler: back press consumed by handler ${i}`);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
dlog('BackHandler: back press unhandled -> native default');
|
|
66
|
+
BackHandler.exitApp();
|
|
67
|
+
}
|
|
68
|
+
class BackHandlerImpl {
|
|
69
|
+
// Trigger Android's default back behavior (exit the app). No-op without a module
|
|
70
|
+
// (e.g. iOS); never throws, mirroring RN's BackHandler.ios.js stub.
|
|
71
|
+
exitApp() {
|
|
72
|
+
const module = getModule();
|
|
73
|
+
if (module === null) {
|
|
74
|
+
dlog('BackHandler.exitApp -> no module (no-op)');
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
module.invokeDefaultBackPressHandler();
|
|
78
|
+
}
|
|
79
|
+
// Register a hardware-back handler. The returned subscription's remove()
|
|
80
|
+
// unregisters it. Idempotent on the same handler reference (RN semantics).
|
|
81
|
+
addEventListener(_eventName, handler) {
|
|
82
|
+
// Install the hub/emitter on first subscribe so native back presses reach the chain.
|
|
83
|
+
getEmitter();
|
|
84
|
+
dlog('BackHandler.addEventListener -> hardwareBackPress');
|
|
85
|
+
if (backPressSubscriptions.indexOf(handler) === -1) {
|
|
86
|
+
backPressSubscriptions.push(handler);
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
remove: () => {
|
|
90
|
+
const index = backPressSubscriptions.indexOf(handler);
|
|
91
|
+
if (index !== -1) {
|
|
92
|
+
backPressSubscriptions.splice(index, 1);
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
// Legacy unsubscribe kept for RN parity. The modern path is the subscription's
|
|
98
|
+
// remove() returned by addEventListener.
|
|
99
|
+
removeEventListener(_eventName, handler) {
|
|
100
|
+
const index = backPressSubscriptions.indexOf(handler);
|
|
101
|
+
if (index !== -1) {
|
|
102
|
+
backPressSubscriptions.splice(index, 1);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export const BackHandler = new BackHandlerImpl();
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type IFabricNode, type IRootTag, type IMeasureOnSuccess, type IMeasureInWindowOnSuccess, type IMeasureLayoutOnSuccess } from './fabric';
|
|
2
|
+
import { type ISymbioteNode } from './node';
|
|
3
|
+
import { type IColorValue } from './platform-color';
|
|
4
|
+
export declare function setColorProcessor(process: (value: IColorValue) => unknown): void;
|
|
5
|
+
export declare function processColor(color: IColorValue): unknown;
|
|
6
|
+
export declare function disposeRoot(rootTag: IRootTag): void;
|
|
7
|
+
export declare function commitChildren(rootTag: IRootTag, children: readonly ISymbioteNode[]): void;
|
|
8
|
+
export declare function setNativeProps(node: ISymbioteNode, partial: Record<string, unknown>): void;
|
|
9
|
+
export declare function getNativeTag(node: ISymbioteNode): number | undefined;
|
|
10
|
+
export declare function whenCommitted(node: ISymbioteNode, action: () => void): () => void;
|
|
11
|
+
export declare function getNativeNode(node: ISymbioteNode): IFabricNode | undefined;
|
|
12
|
+
export declare function dispatchViewCommand(node: ISymbioteNode, commandName: string, args: readonly unknown[]): void;
|
|
13
|
+
export declare function sendAccessibilityEvent(node: ISymbioteNode, eventType: string): void;
|
|
14
|
+
export declare function measure(node: ISymbioteNode, callback: IMeasureOnSuccess): void;
|
|
15
|
+
export declare function measureInWindow(node: ISymbioteNode, callback: IMeasureInWindowOnSuccess): void;
|
|
16
|
+
export declare function measureLayout(node: ISymbioteNode, relativeTo: ISymbioteNode, onSuccess: IMeasureLayoutOnSuccess, onFail?: () => void): void;
|