UNPKG

765 BTypeScriptView Raw
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @format
8 */
9
10/**
11 * Interface for NativeModules which allows to augment NativeModules with type information.
12 * See react-native-sensor-manager for example.
13 */
14interface NativeModulesStatic {
15 [name: string]: any;
16}
17
18/**
19 * Native Modules written in ObjectiveC/Swift/Java exposed via the RCTBridge
20 * Define lazy getters for each module. These will return the module if already loaded, or load it if not.
21 * See https://reactnative.dev/docs/native-modules-ios
22 * @example
23 * const MyModule = NativeModules.ModuleName
24 */
25export const NativeModules: NativeModulesStatic;