mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-11 08:13:29 +08:00
* fix: connect ts declaration with @types/react-native * fix: ts declaration * fix: ts declaration
18 lines
523 B
TypeScript
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> {}
|