mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out "Add enum example to Android/iOS rn-tester TurboModule" (#35089)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/35089 Changelog: [General][Fixed] - Back out "Add enum example to Android/iOS rn-tester TurboModule" This broke the rn-tester adding due to an invalid flow-enum setup. Needs further investigation Reviewed By: cipolleschi Differential Revision: D40714320 fbshipit-source-id: 9831276762f90df0ffaca3304382fe5925009343
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c868d5b26c
commit
d0599ac56b
@@ -13,11 +13,6 @@ import type {RootTag, TurboModule} from '../RCTExport';
|
||||
|
||||
import * as TurboModuleRegistry from '../TurboModuleRegistry';
|
||||
|
||||
export enum EnumInt {
|
||||
A = 23,
|
||||
B = 42,
|
||||
}
|
||||
|
||||
export interface Spec extends TurboModule {
|
||||
// Exported methods.
|
||||
+getConstants: () => {|
|
||||
@@ -27,7 +22,6 @@ export interface Spec extends TurboModule {
|
||||
|};
|
||||
+voidFunc: () => void;
|
||||
+getBool: (arg: boolean) => boolean;
|
||||
+getEnum?: (arg: EnumInt) => EnumInt;
|
||||
+getNumber: (arg: number) => number;
|
||||
+getString: (arg: string) => string;
|
||||
+getArray: (arg: Array<any>) => Array<any>;
|
||||
|
||||
Reference in New Issue
Block a user