diff --git a/packages/react-native/Libraries/Share/Share.d.ts b/packages/react-native/Libraries/Share/Share.d.ts index 76ac757c97e..789251a2c7b 100644 --- a/packages/react-native/Libraries/Share/Share.d.ts +++ b/packages/react-native/Libraries/Share/Share.d.ts @@ -27,17 +27,11 @@ export type ShareOptions = { anchor?: number | undefined; }; -export type ShareSharedAction = { - action: 'sharedAction'; - activityType?: string | undefined; +export type ShareAction = { + action: 'sharedAction' | 'dismissedAction'; + activityType?: string | null | undefined; }; -export type ShareDismissedAction = { - action: 'dismissedAction'; -}; - -export type ShareAction = ShareSharedAction | ShareDismissedAction; - export interface ShareStatic { /** * Open a dialog to share text content. diff --git a/packages/react-native/types/__typetests__/index.tsx b/packages/react-native/types/__typetests__/index.tsx index d73b93d1459..26419aa6c34 100644 --- a/packages/react-native/types/__typetests__/index.tsx +++ b/packages/react-native/types/__typetests__/index.tsx @@ -84,8 +84,7 @@ import { SectionListProps, SectionListRenderItemInfo, Share, - ShareDismissedAction, - ShareSharedAction, + ShareAction, StatusBar, StyleProp, StyleSheet,