T

NativeFabricBridge

Mounts registered React Native components inside existing native views. Sync methods are iOS only.

type NativeFabricBridge = { … }

Members

Applies every mutation in order on the main thread's next display frame, skipping stopped surfaces. Needs native.fabric.async.

Reads a view's frame.

Like measure, on the main thread.

mount(container: NativeHandle, moduleName: string, properties?: NativeSerializableObject, options?: NativeFabricMountOptions): NativeHandle

Starts a surface for a registered component inside a container view. Needs native.fabric.mount.

Like mount, on the main thread. Needs native.fabric.async.

releaseIdle?(): void

Destroys the idle surfaces this plugin left for reuse.

Like releaseIdle, on the main thread; the plugin scope calls it when the plugin stops.

setFrame(surface: NativeHandle, frame: NativeFabricFrame): void

Positions the surface's view in its container.

Like setFrame, on the main thread.

setSize(surface: NativeHandle, minimumSize: NativeFabricSize, maximumSize: NativeFabricSize): void

Sets the smallest and largest size the surface may lay out at.

Like setSize, on the main thread.

unmount(surface: NativeHandle): void

Stops a surface and removes its view.

Like unmount, on the main thread.

update(surface: NativeHandle, properties: NativeSerializableObject): void

Sends new properties to a surface.

Like update, on the main thread.