react-native-gradient-buttons-improved
Version:
React Native gradient buttons for your next project
34 lines (31 loc) • 923 B
TypeScript
// Type definitions for react-native-gradient-buttons
// Project: React Native Gradient Buttons
// Definitions by: Thomas Wang <thomaswang.io>
import { TextStyle, ViewStyle } from 'react-native';
/*~ You can declare types that are available via importing the module */
export interface Props {
children: JSX.Element[] | JSX.Element,
style: ViewStyle,
text: string,
textStyle: TextStyle,
gradientBegin: string,
gradientEnd: string,
gradientDirection: string,
height: any,
width: any,
radius: number,
impact: boolean,
impactStyle: string,
onPressAction: Function,
onLongPressAction: Function,
purpleViolet: boolean,
violetPink: boolean,
pinkDarkGreen: boolean,
blueViolet: boolean,
blueMarine: boolean,
deepBlue: boolean,
disabled: boolean,
disabledGradientBegin: string,
disabledGradientEnd: string,
delayLongPress: number,
}