From f8e25077c305bc2c5fc7504b2ce4fe5eea3ba469 Mon Sep 17 00:00:00 2001 From: Alec Winograd Date: Mon, 13 Nov 2017 15:56:27 +0100 Subject: [PATCH] Add loading spinner props to react-native-elements ButtonProps (#21382) * Add loading spinner props to react-native-elements ButtonProps https://react-native-training.github.io/react-native-elements/API/buttons/ * Fix lint error --- types/react-native-elements/index.d.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/types/react-native-elements/index.d.ts b/types/react-native-elements/index.d.ts index 60afbdf38d..821e9b65e7 100644 --- a/types/react-native-elements/index.d.ts +++ b/types/react-native-elements/index.d.ts @@ -354,11 +354,25 @@ export interface ButtonProps extends TouchableWithoutFeedbackProps { containerViewStyle?: StyleProp; /** - * Indicates button is loading + * Styling for loading spinner + * + * @default null + */ + activityIndicatorStyle?: StyleProp; + + /** + * Display a loading spinner * * @default false */ loading?: boolean; + + /** + * Display the spinner to the right + * + * @default false + */ + loadingRight?: boolean; } /**