GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.nativebase.io — Pressable | NativeBase | Universal Components for React and React Native Pressable | NativeBase | Universal Components for React and React NativeDisclosure If you are starting a new project, please try gluestack-ui for better performance and new design. Pressable Pressable is a lower level primitive if you need more flexibility than a button and access to hover, pressed and focus events.
Examples Basic Pressable accepts most of the utility style system props.
Accessing events (hover, focus and pressed) Pressable accepts a render prop children, which receives isHovered, isFocused and isPressed props.
Props Pressable Pressable implements , , , , , , , , , , onHoverIn Called when a mouse enters the Pressable Type: () => void onHoverOut Called when a mouse leaves the Pressable Type: () => void onFocus Called when Pressable receives focus Type: () => void onBlur Called when Pressable loses focus Type: () => void _hover Style props to be applied when hovered Type: Omit<Partial<IPressableProps>, "_hover"> _pressed Style props to be applied when pressed Type: Omit<Partial<IPressableProps>, "_pressed"> _focus Style props to be applied when focus Type: Omit<Partial<IPressableProps>, "_focus"> _disabled Style props to be applied when disabled Type: Omit<Partial<IPressableProps>, "_disabled"> isDisabled If true, the p will be disabled. Type: boolean isHovered If true, the p will be hovered. Type: boolean isPressed If true, the p will be pressed. Type: boolean isFocused If true, the p will be focused. Type: boolean isFocusVisible If true, the focus ring will be visible . Type: boolean _focusVisible Style props to be applied when focus visible. These styles will be only applied when user is interacting the app using a keyboard. (Web only) Type: Omit<Partial<IPressableProps>, "_focusVisible"> children Either children or a render prop that receives a boolean reflecting whether the component is currently pressed. Type: ReactNode | (({ isPressed, isHovered, isFocused, }: { isPressed: boolean; isHovered: boolean; isFocused: boolean; }) => any) MadeWithNativeBase gluestack-ui |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |