Files
Shen Junru a87c1dd85b fix: connect ts declaration with @types/react-native (#627)
* fix: connect ts declaration with @types/react-native

* fix: ts declaration

* fix: ts declaration
2018-11-08 10:32:53 +01:00

18 lines
523 B
TypeScript

import * as React from 'react';
import { StyleProp, ViewStyle } from 'react-native';
import { ThemeShape, IconSource } from '../types';
import { TouchableRippleProps } from './TouchableRipple';
export interface ButtonProps extends TouchableRippleProps {
mode?: 'text' | 'outlined' | 'contained';
color?: string;
dark?: boolean;
compact?: boolean;
loading?: boolean;
style?: StyleProp<ViewStyle>;
icon?: IconSource;
theme?: ThemeShape;
}
export declare class Button extends React.Component<ButtonProps> {}