react-native-animated-swipe-button
Version:
A custom component of an animated swipe button
28 lines (25 loc) • 701 B
text/typescript
import { TextStyle, ViewStyle } from "react-native";
type SwipeButtonProps = {
onToggle: (isToggled: boolean) => void;
isToggled: boolean;
width?: number;
height?: number;
padding?: number;
containerStyle?: ViewStyle;
gradiantColors?: string[];
buttonColors?: string[];
textBeforeSwipeStyle?: TextStyle;
textAfterSwipeStyle?: TextStyle;
textCheckIn?: string;
textCheckOut?: string;
};
type SwipeButtonStyleProps = {
height: number;
width: number;
padding: number;
dimantions: number;
containerStyle?: ViewStyle;
textBeforeSwipeStyle?: TextStyle;
textAfterSwipeStyle?: TextStyle;
};
export { SwipeButtonProps, SwipeButtonStyleProps };