diff --git a/src/lightbox/LightboxActionSheet.js b/src/lightbox/LightboxActionSheet.js index 0e0e2259ff8..f1723b33808 100644 --- a/src/lightbox/LightboxActionSheet.js +++ b/src/lightbox/LightboxActionSheet.js @@ -56,7 +56,8 @@ const actionSheetButtons: ButtonType[] = [ { title: 'Cancel', onPress: () => false }, ]; -export const constructActionSheetButtons = () => actionSheetButtons.map(button => button.title); +export const constructActionSheetButtons = (): string[] => + actionSheetButtons.map(button => button.title); export const executeActionSheetAction = ({ title, ...props }: ExecuteActionSheetActionType) => { const button = actionSheetButtons.find(x => x.title === title);