react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
90 lines • 4.71 kB
TypeScript
import type { CodegenTypes, ColorValue, HostComponent, ViewProps } from 'react-native';
export type ButtonEvent = Readonly<{
pointerInside: boolean;
x: CodegenTypes.Double;
y: CodegenTypes.Double;
absoluteX: CodegenTypes.Double;
absoluteY: CodegenTypes.Double;
numberOfPointers: CodegenTypes.Int32;
pointerType: CodegenTypes.Int32;
}>;
interface NativeProps extends ViewProps {
onButtonPress?: CodegenTypes.DirectEventHandler<ButtonEvent> | undefined;
onButtonPressIn?: CodegenTypes.DirectEventHandler<ButtonEvent> | undefined;
onButtonPressOut?: CodegenTypes.DirectEventHandler<ButtonEvent> | undefined;
onButtonLongPress?: CodegenTypes.DirectEventHandler<ButtonEvent> | undefined;
onButtonHoverIn?: CodegenTypes.DirectEventHandler<ButtonEvent> | undefined;
onButtonHoverOut?: CodegenTypes.DirectEventHandler<ButtonEvent> | undefined;
onButtonInteractionFinished?: CodegenTypes.DirectEventHandler<ButtonEvent> | undefined;
hasLongPressHandler?: CodegenTypes.WithDefault<boolean, false>;
moduleId?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
handlerTag?: CodegenTypes.Double | undefined;
cancelOnLeave?: CodegenTypes.WithDefault<boolean, true>;
gestureTestID?: string;
gestureHitSlop?: Readonly<{
top?: CodegenTypes.Double | undefined;
left?: CodegenTypes.Double | undefined;
bottom?: CodegenTypes.Double | undefined;
right?: CodegenTypes.Double | undefined;
}>;
exclusive?: CodegenTypes.WithDefault<boolean, true>;
foreground?: boolean;
borderless?: boolean;
enabled?: CodegenTypes.WithDefault<boolean, true>;
rippleColor?: ColorValue;
rippleRadius?: CodegenTypes.Int32;
touchSoundDisabled?: CodegenTypes.WithDefault<boolean, false>;
pointerEvents?: CodegenTypes.WithDefault<'box-none' | 'none' | 'box-only' | 'auto', 'auto'>;
tapAnimationInDuration?: CodegenTypes.WithDefault<CodegenTypes.Int32, 50>;
tapAnimationOutDuration?: CodegenTypes.WithDefault<CodegenTypes.Int32, 100>;
longPressDuration?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
longPressAnimationOutDuration?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
needsOffscreenAlphaCompositing?: CodegenTypes.WithDefault<boolean, false>;
activeOpacity?: CodegenTypes.WithDefault<CodegenTypes.Float, 1>;
activeScale?: CodegenTypes.WithDefault<CodegenTypes.Float, 1>;
activeUnderlayOpacity?: CodegenTypes.WithDefault<CodegenTypes.Float, 0>;
hoverOpacity?: CodegenTypes.WithDefault<CodegenTypes.Float, -1>;
hoverScale?: CodegenTypes.WithDefault<CodegenTypes.Float, -1>;
hoverUnderlayOpacity?: CodegenTypes.WithDefault<CodegenTypes.Float, -1>;
hoverAnimationInDuration?: CodegenTypes.WithDefault<CodegenTypes.Int32, 50>;
hoverAnimationOutDuration?: CodegenTypes.WithDefault<CodegenTypes.Int32, 100>;
defaultOpacity?: CodegenTypes.WithDefault<CodegenTypes.Float, 1>;
defaultScale?: CodegenTypes.WithDefault<CodegenTypes.Float, 1>;
defaultUnderlayOpacity?: CodegenTypes.WithDefault<CodegenTypes.Float, 0>;
underlayColor?: ColorValue;
borderWidth?: CodegenTypes.Float;
borderColor?: ColorValue;
borderStyle?: CodegenTypes.WithDefault<string, 'solid'>;
overflow?: CodegenTypes.WithDefault<string, 'visible'>;
borderLeftWidth?: CodegenTypes.Float;
borderRightWidth?: CodegenTypes.Float;
borderTopWidth?: CodegenTypes.Float;
borderBottomWidth?: CodegenTypes.Float;
borderStartWidth?: CodegenTypes.Float;
borderEndWidth?: CodegenTypes.Float;
borderLeftColor?: ColorValue;
borderRightColor?: ColorValue;
borderTopColor?: ColorValue;
borderBottomColor?: ColorValue;
borderStartColor?: ColorValue;
borderEndColor?: ColorValue;
borderBlockColor?: ColorValue;
borderBlockEndColor?: ColorValue;
borderBlockStartColor?: ColorValue;
borderRadius?: CodegenTypes.UnsafeMixed;
borderTopLeftRadius?: CodegenTypes.UnsafeMixed;
borderTopRightRadius?: CodegenTypes.UnsafeMixed;
borderBottomLeftRadius?: CodegenTypes.UnsafeMixed;
borderBottomRightRadius?: CodegenTypes.UnsafeMixed;
borderTopStartRadius?: CodegenTypes.UnsafeMixed;
borderTopEndRadius?: CodegenTypes.UnsafeMixed;
borderBottomStartRadius?: CodegenTypes.UnsafeMixed;
borderBottomEndRadius?: CodegenTypes.UnsafeMixed;
borderEndEndRadius?: CodegenTypes.UnsafeMixed;
borderEndStartRadius?: CodegenTypes.UnsafeMixed;
borderStartEndRadius?: CodegenTypes.UnsafeMixed;
borderStartStartRadius?: CodegenTypes.UnsafeMixed;
}
declare const _default: HostComponent<NativeProps>;
export default _default;
//# sourceMappingURL=RNGestureHandlerButtonNativeComponent.d.ts.map