From af52ba519c932c11649597ddf885cfeecbc7ec75 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Mon, 3 Oct 2016 13:13:20 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/touchablenativefeedback.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/releases/next/docs/touchablenativefeedback.html b/releases/next/docs/touchablenativefeedback.html index 6a617d4244d..87c7f82529a 100644 --- a/releases/next/docs/touchablenativefeedback.html +++ b/releases/next/docs/touchablenativefeedback.html @@ -16,14 +16,18 @@ of RCTView node with some additional properties set.

Background drawable o },

Props #

background backgroundPropType #

Determines the type of background drawable that's going to be used to display feedback. It takes an object with type property and extra data depending on the type. It's recommended to use one of the static -methods to generate that dictionary.

Methods #

static SelectableBackground(0) #

Creates an object that represents android theme's default background for +methods to generate that dictionary.

useForeground PropTypes.bool #

Set to true to add the ripple effect to the foreground of the view, instead of the +background. This is useful if one of your child views has a background of its own, or you're +e.g. displaying images, and you don't want the ripple to be covered by them.

Check TouchableNativeFeedback.canUseNativeForeground() first, as this is only available on +Android 6.0 and above. If you try to use this on older versions you will get a warning and +fallback to background.

Methods #

static SelectableBackground(0) #

Creates an object that represents android theme's default background for selectable elements (?android:attr/selectableItemBackground).

static SelectableBackgroundBorderless(0) #

Creates an object that represent android theme's default background for borderless selectable elements (?android:attr/selectableItemBackgroundBorderless). Available on android API level 21+.

static Ripple(color, borderless) #

Creates an object that represents ripple drawable with specified color (as a string). If property borderless evaluates to true the ripple will render outside of the view bounds (see native actionbar buttons as an example of that behavior). This background type is available on Android -API level 21+.

Parameters:
Name and TypeDescription
color

string

The ripple color

borderless

boolean

If the ripple can render outside it's bounds

You can edit the content above on GitHub and send us a pull request!