Merge pull request #21350 from mikesholiu/master

react-native-elements: iconRight in ButtonProps should be of type ButtonIcon
This commit is contained in:
Daniel Rosenwasser
2017-11-09 00:28:19 -08:00
committed by GitHub
2 changed files with 3 additions and 6 deletions

View File

@@ -255,11 +255,9 @@ export interface ButtonProps extends TouchableWithoutFeedbackProps {
fontWeight?: string;
/**
* Moves icon to right of title
*
* @default false
* Icon configuration for icon on right side of title
*/
iconRight?: boolean;
iconRight?: ButtonIcon;
/**
* onPress method

View File

@@ -222,8 +222,7 @@ class ButtonTest extends React.Component<any, any> {
<Button
large
iconRight
icon={{ name: 'code' }}
iconRight = {{ name: 'code' }}
title="LARGE WITH RIGHT ICON"
onPress={() => this.handleButtonPress()}
/>