mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-08 19:52:32 +08:00
Merge pull request #21350 from mikesholiu/master
react-native-elements: iconRight in ButtonProps should be of type ButtonIcon
This commit is contained in:
6
types/react-native-elements/index.d.ts
vendored
6
types/react-native-elements/index.d.ts
vendored
@@ -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
|
||||
|
||||
@@ -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()}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user