import * as React from 'react'; import { Pressable as RNPressable, PressableProps as RNPressableProps, } from 'react-native'; import { usePressable } from '../hooks/usePressable'; import type { UsePressable } from '../hooks/usePressable'; export type PressableProps = UsePressable; const PressableBase = React.forwardRef( ({ children, ...rest }, ref) => { const pressableProps = usePressable(rest, children); return ( {children} ); }, ); export const Pressable = React.memo(PressableBase);