From 960a208afe6992ef4a28492b642c3d8036eeda7e Mon Sep 17 00:00:00 2001 From: Jorge Bernal Date: Fri, 11 Oct 2019 13:28:48 +0200 Subject: [PATCH] Fix Button active status In #17676, the `active` prop in Icon/SVG got renamed to `__unstableActive`, but Button was still using the old name. --- packages/components/src/button/index.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/button/index.native.js b/packages/components/src/button/index.native.js index b4bfd0a5657b56..e57cad3ec34d80 100644 --- a/packages/components/src/button/index.native.js +++ b/packages/components/src/button/index.native.js @@ -93,7 +93,7 @@ export function Button( props ) { const subscriptInactive = getStylesFromColorScheme( styles.subscriptInactive, styles.subscriptInactiveDark ); const newChildren = Children.map( children, ( child ) => { - return child ? cloneElement( child, { colorScheme: props.preferredColorScheme, active: ariaPressed } ) : child; + return child ? cloneElement( child, { colorScheme: props.preferredColorScheme, __unstableActive: ariaPressed } ) : child; } ); return (