F

getNativeModule

Resolves the first available native module matching any of the given names, checking both NativeModules and the TurboModuleRegistry.

function getNativeModule<T>(...names: string[]): T

Parameters

NameTypeDescription
...namesstring[]

The candidate native module names to look up, in priority order.

Returns

T

The first matching native module.