diff --git a/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts b/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts index 5aad60b1c1a8de..89bdd373239937 100644 --- a/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +++ b/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts @@ -30,6 +30,7 @@ export interface ShareActionSheetIOSOptions { message?: string | undefined; url?: string | undefined; subject?: string | undefined; + anchor?: number | undefined; /** The activities to exclude from the ActionSheet. * For example: ['com.apple.UIKit.activity.PostToTwitter'] */ diff --git a/Libraries/Share/Share.d.ts b/Libraries/Share/Share.d.ts index 24bc7cacd1a0d7..76ac757c97e8fe 100644 --- a/Libraries/Share/Share.d.ts +++ b/Libraries/Share/Share.d.ts @@ -24,6 +24,7 @@ export type ShareOptions = { excludedActivityTypes?: Array | undefined; tintColor?: ColorValue | undefined; subject?: string | undefined; + anchor?: number | undefined; }; export type ShareSharedAction = { diff --git a/Libraries/Share/Share.js b/Libraries/Share/Share.js index 4f6231dcac75e1..10fff7443e0385 100644 --- a/Libraries/Share/Share.js +++ b/Libraries/Share/Share.js @@ -31,6 +31,7 @@ type Options = { excludedActivityTypes?: Array, tintColor?: string, subject?: string, + anchor?: number, ... }; @@ -131,6 +132,8 @@ class Share { url: typeof content.url === 'string' ? content.url : undefined, subject: options.subject, tintColor: typeof tintColor === 'number' ? tintColor : undefined, + anchor: + typeof options.anchor === 'number' ? options.anchor : undefined, excludedActivityTypes: options.excludedActivityTypes, }, error => reject(error),