From 1e4bf359eb5ccca05ad103b392ef9c9fd84d7d77 Mon Sep 17 00:00:00 2001 From: msl Date: Wed, 8 Nov 2017 10:55:32 -0800 Subject: [PATCH] ButtonProps iconRight: ButtonIcon, not boolean Details: *Type of iconRight in ButtonProps should be a ButtonIcon, not boolean. *Button is expecting iconRight prop to be a ButtonIcon and will render it appropriately. *Currently, setting iconRight to a boolean causes error "In this environment the sources for assign MUST be an object." --- types/react-native-elements/index.d.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/types/react-native-elements/index.d.ts b/types/react-native-elements/index.d.ts index 3ed093d85f..e9882ce155 100644 --- a/types/react-native-elements/index.d.ts +++ b/types/react-native-elements/index.d.ts @@ -255,11 +255,9 @@ export interface ButtonProps extends TouchableWithoutFeedbackProps { fontWeight?: string; /** - * Moves icon to right of title - * - * @default false + * Icon configuration */ - iconRight?: boolean; + iconRight?: ButtonIcon; /** * onPress method