diff --git a/src/components/Button/Button.tsx b/src/components/Button/Button.tsx index 709deaab6f..64a049a63d 100644 --- a/src/components/Button/Button.tsx +++ b/src/components/Button/Button.tsx @@ -139,6 +139,10 @@ export type Props = $Omit, 'mode'> & { * @optional */ theme?: ThemeProp; + /** + * Reference for the touchable + */ + touchableRef?: React.RefObject; /** * testID to be used on tests. */ @@ -191,6 +195,7 @@ const Button = ( accessible, background, maxFontSizeMultiplier, + touchableRef, ...rest }: Props, ref: React.ForwardedRef @@ -348,6 +353,7 @@ const Button = ( style={touchableStyle} testID={testID} theme={theme} + ref={touchableRef} > {icon && loading !== true ? (