as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
A wrapper for making views respond properly to touches (Android only). On Android this component uses native state drawable to display touch feedback. At the moment it only supports having a single View instance as a child node, as it’s implemented by replacing that View with another instance of RCTView node with some additional properties set. Background drawable of native feedback touchable can be customized with background property.

Example


Reference

Props

TouchableWithoutFeedback Props

Inherits TouchableWithoutFeedback Props.

background

Determines the type of background drawable that’s going to be used to display feedback.

useForeground

Set to true to add the ripple effect to the foreground of the view, instead of the background.

hasTVPreferredFocus Android

TV preferred focus.

nextFocusDown Android

TV next focus down.

nextFocusForward Android

TV next focus forward.

nextFocusLeft Android

TV next focus left.

nextFocusRight Android

TV next focus right.

nextFocusUp Android

TV next focus up.

Methods

SelectableBackground()

Creates an object that represents android theme’s default background for selectable elements.

SelectableBackgroundBorderless()

Creates an object that represent android theme’s default background for borderless selectable elements. Available on android API level 21+.

Ripple()

Creates an object that represents ripple drawable with specified color. Available on Android API level 21+. Parameters:

canUseNativeForeground()

最后修改于 2026年10月26日