mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add jsi::HostObject example to rn-tester (#36909)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36909 Changelog: [Internal] Reviewed By: javache Differential Revision: D44978689 fbshipit-source-id: 0e31b5c37a7890744694706994ea672c3e619341
This commit is contained in:
committed by
Facebook GitHub Bot
parent
adb210306d
commit
f5c0606185
@@ -54,11 +54,15 @@ export type ValueStruct = {|
|
||||
z: ObjectStruct,
|
||||
|};
|
||||
|
||||
export type CustomHostObject = {};
|
||||
|
||||
export interface Spec extends TurboModule {
|
||||
+getArray: (arg: Array<ObjectStruct | null>) => Array<ObjectStruct | null>;
|
||||
+getBool: (arg: boolean) => boolean;
|
||||
+getConstants: () => ConstantsStruct;
|
||||
+getCustomEnum: (arg: EnumInt) => EnumInt;
|
||||
+getCustomHostObject: () => CustomHostObject;
|
||||
+consumeCustomHostObject: (customHostObject: CustomHostObject) => string;
|
||||
+getNumEnum: (arg: EnumInt) => EnumFloat;
|
||||
+getStrEnum: (arg: EnumNone) => EnumStr;
|
||||
+getMap: (arg: {[key: string]: ?number}) => {[key: string]: ?number};
|
||||
|
||||
Reference in New Issue
Block a user