Skip to content

Commit 3d5860b

Browse files
authored
fix: Codegen fail on union type (#40)
1 parent b0d080f commit 3d5860b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/NativeFileViewerTurbo.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
import { TurboModuleRegistry, type TurboModule } from 'react-native';
22
import type { EventEmitter } from 'react-native/Libraries/Types/CodegenTypes';
33

4+
export enum DoneButtonPosition {
5+
left = 'left',
6+
right = 'right'
7+
}
8+
49
export type Options = {
510
displayName?: string;
611
doneButtonTitle?: string;
712
showOpenWithDialog?: boolean;
813
showAppsSuggestions?: boolean;
9-
doneButtonPosition?: 'left' | 'right';
14+
doneButtonPosition?: DoneButtonPosition;
1015
};
1116

1217
export interface Spec extends TurboModule {

0 commit comments

Comments
 (0)