Skip to content

Commit

Permalink
reverting accidental IDE merge of Pressable doc--it's still in review
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelnabors committed May 14, 2020
1 parent 4b93c2b commit cca0b83
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions docs/touchablehighlight.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ id: touchablehighlight
title: TouchableHighlight
---

> If you're looking for a more extensive and future-proof way to handle touch-based input, check out the [Pressable](pressable.md) API.
A wrapper for making views respond properly to touches. On press down, the opacity of the wrapped view is decreased, which allows the underlay color to show through, darkening or tinting the view.

The underlay comes from wrapping the child in a new View, which can affect layout, and sometimes cause unwanted visual artifacts if not used correctly, for example if the backgroundColor of the wrapped view isn't explicitly set to an opaque color.
Expand Down
2 changes: 0 additions & 2 deletions docs/touchablenativefeedback.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ id: touchablenativefeedback
title: TouchableNativeFeedback
---

> If you're looking for a more extensive and future-proof way to handle touch-based input, check out the [Pressable](pressable.md) API.
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.
Expand Down
2 changes: 0 additions & 2 deletions docs/touchableopacity.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ id: touchableopacity
title: TouchableOpacity
---

> If you're looking for a more extensive and future-proof way to handle touch-based input, check out the [Pressable](pressable.md) API.
A wrapper for making views respond properly to touches. On press down, the opacity of the wrapped view is decreased, dimming it.

Opacity is controlled by wrapping the children in an `Animated.View`, which is added to the view hierarchy. Be aware that this can affect layout.
Expand Down
2 changes: 0 additions & 2 deletions docs/touchablewithoutfeedback.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ id: touchablewithoutfeedback
title: TouchableWithoutFeedback
---

> If you're looking for a more extensive and future-proof way to handle touch-based input, check out the [Pressable](pressable.md) API.
Do not use unless you have a very good reason. All elements that respond to press should have a visual feedback when touched.

`TouchableWithoutFeedback` supports only one child. If you wish to have several child components, wrap them in a View. Importantly, `TouchableWithoutFeedback` works by cloning its child and applying responder props to it. It is therefore required that any intermediary components pass through those props to the underlying React Native component.
Expand Down
3 changes: 0 additions & 3 deletions website/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,6 @@
"platformcolor": {
"title": "PlatformColor"
},
"pressable": {
"title": "Pressable"
},
"profiling": {
"title": "Profiling"
},
Expand Down
1 change: 0 additions & 1 deletion website/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"imagebackground",
"keyboardavoidingview",
"modal",
"pressable",
"refreshcontrol",
"safeareaview",
"scrollview",
Expand Down

0 comments on commit cca0b83

Please sign in to comment.