UNPKG

artwork-react-native

Version:

artwork design master for react-native

37 lines (36 loc) 1.2 kB
/// <reference types="react" /> /// <reference types="react-native" /> import React from 'react'; import { ButtonProps as BasePropsType } from './PropsType'; import ButtonStyle from './style'; export interface ButtonProps extends BasePropsType { onPressIn?: (x?: any) => void; onPressOut?: (x?: any) => void; onShowUnderlay?: (x?: any) => void; onHideUnderlay?: (x?: any) => void; styles?: typeof ButtonStyle; } export default class Button extends React.Component<ButtonProps, any> { static defaultProps: { pressIn: boolean; disabled: boolean; activeStyle: {}; loading: boolean; onClick: (_x?: any) => void; onPressIn: (_x?: any) => void; onPressOut: (_x?: any) => void; onShowUnderlay: (_x?: any) => void; onHideUnderlay: (_x?: any) => void; styles: { [x: string]: number & { __registeredStyleBrand: any; }; }; }; constructor(props: any); onPressIn: (...arg: any[]) => void; onPressOut: (...arg: any[]) => void; onShowUnderlay: (...arg: any[]) => void; onHideUnderlay: (...arg: any[]) => void; render(): JSX.Element; }