NativeFabricBridge
Mounts registered React Native components inside existing native views. Sync methods are iOS only.
type NativeFabricBridge = { … }Members
(mutations: NativeFabricBatchMutation[]): NativeCancelablePromise<void>Applies every mutation in order on the main thread's next display frame, skipping stopped surfaces. Needs native.fabric.async.
(view: NativeHandle): NativeFabricFrameReads a view's frame.
Like measure, on the main thread.
(container: NativeHandle, moduleName: string, properties?: NativeSerializableObject, options?: NativeFabricMountOptions): NativeHandleStarts a surface for a registered component inside a container view. Needs native.fabric.mount.
(container: NativeHandle, moduleName: string, properties?: NativeSerializableObject, options?: NativeFabricMountOptions): NativeCancelablePromise<NativeHandle>Like mount, on the main thread. Needs native.fabric.async.
(): voidDestroys the idle surfaces this plugin left for reuse.
(): NativeCancelablePromise<void>Like releaseIdle, on the main thread; the plugin scope calls it when the plugin stops.
(surface: NativeHandle, frame: NativeFabricFrame): voidPositions the surface's view in its container.
(surface: NativeHandle, frame: NativeFabricFrame): NativeCancelablePromise<void>Like setFrame, on the main thread.
(surface: NativeHandle, minimumSize: NativeFabricSize, maximumSize: NativeFabricSize): voidSets the smallest and largest size the surface may lay out at.
(surface: NativeHandle, minimumSize: NativeFabricSize, maximumSize: NativeFabricSize): NativeCancelablePromise<void>Like setSize, on the main thread.
(surface: NativeHandle): voidStops a surface and removes its view.
(surface: NativeHandle): NativeCancelablePromise<void>Like unmount, on the main thread.
(surface: NativeHandle, properties: NativeSerializableObject): voidSends new properties to a surface.
(surface: NativeHandle, properties: NativeSerializableObject): NativeCancelablePromise<void>Like update, on the main thread.