react-native-press-me-button
Version:
An button that screams "Press me!"
25 lines (24 loc) • 651 B
TypeScript
import * as React from 'react';
import { ViewStyle } from 'react-native';
export interface PressMeButtonProps {
onPress: () => void;
onPressIn?: () => void;
onPressOut?: () => void;
width?: number;
height: number;
style?: ViewStyle;
buttonColor: string;
backgroundColor?: string;
shadowStyle?: ViewStyle;
frontStyle?: ViewStyle;
cornerRadius?: number;
edgeColor?: string;
edgeHeight?: number;
darkenEdgeBy?: number;
disabled?: boolean;
}
export interface PressMeButtonState {
isPressed: boolean;
}
declare const PressMeButton: React.FC<PressMeButtonProps>;
export default PressMeButton;