import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; import type { Int32, WithDefault, Float, } from 'react-native/Libraries/Types/CodegenTypes'; import type { ViewProps, ColorValue } from 'react-native'; // @ts-ignore - Redefining pointerEvents with WithDefault for codegen, conflicts with ViewProps type but codegen needs it interface NativeProps extends ViewProps { exclusive?: WithDefault; foreground?: boolean; borderless?: boolean; enabled?: WithDefault; rippleColor?: ColorValue; rippleRadius?: Int32; touchSoundDisabled?: WithDefault; borderWidth?: Float; borderColor?: ColorValue; borderStyle?: WithDefault; pointerEvents?: WithDefault< 'box-none' | 'none' | 'box-only' | 'auto', 'auto' >; } export default codegenNativeComponent('RNGestureHandlerButton');