Skip to content

Commit 1cd3061

Browse files
committed
Other renames
1 parent aeaef39 commit 1cd3061

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

packages/docs-gesture-handler/docs/components/buttons.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import GifGallery from '@site/components/GifGallery';
1010
import HeaderWithBadges from '@site/src/components/HeaderWithBadges';
1111

1212
:::danger
13-
Button components described in this section are deprecated and will be removed in the future. Please use [`Clickable`](/docs/components/clickable) instead.
13+
Button components described in this section are deprecated and will be removed in the future. Please use [`Touchable`](/docs/components/touchable) instead.
1414
:::
1515

1616
<GifGallery>
@@ -198,7 +198,7 @@ If you wish to get specific information about platforms design patterns, visit [
198198

199199
This library allows the use of native components with native feedback in adequate situations.
200200

201-
If you do not wish to implement a custom design approach, [`RectButton`](#rectbutton) and [`BorderlessButton`](#borderlessbutton) seem to be absolutely enough and there's no need to use anything else. In all the remaining cases, you can always rely on [`BaseButton`](#basebutton) which is a superclass for the other button classes and can be used as a generic `Touchable` replacement that can be customized to your needs.
201+
If you do not wish to implement a custom design approach, [`RectButton`](#rectbutton) and [`BorderlessButton`](#borderlessbutton) seem to be absolutely enough and there's no need to use anything else. In all the remaining cases, you can always rely on [`BaseButton`](#basebutton) which is a superclass for the other button classes and can be used as a generic React Native `Touchable` replacement that can be customized to your needs.
202202

203203
Below we list some of the common usecases for button components to be used along with the type of button that should be used according to the platform specific design guidelines.
204204

packages/docs-gesture-handler/docs/components/touchable.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Replacing `BorderlessButton` with `Touchable` is as easy as replacing `RectButto
4242

4343
## Replacing deprecated Touchables
4444

45-
If you were using the deprecated [`Touchables`](/docs/components/touchables), you can replace them with new `Touchable` as well.
45+
If you were using the deprecated [`Touchables`](/docs/components/legacy-touchables), you can replace them with new `Touchable` as well.
4646

4747
### TouchableOpacity
4848

packages/docs-gesture-handler/docs/guides/troubleshooting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This library is maintained by a very small team. Please keep this in mind when r
3232

3333
- Changing `enabled` prop during a gesture has no effect, only when a gesture starts (that is, a finger touches the screen) the `enabled` prop is taken into consideration to decide whether to extract (or not) the gesture and provide it with stream of events to analyze.
3434
- `Native` gesture may not conform to the standard state flow due to platform specific workarounds to incorporate native views into RNGH.
35-
- Keep in mind that [`Touchables`](/docs/components/touchables) from RNGH are rendering two additional views that may need to be styled separately to achieve desired effect (`style` and `containerStyle` props).
35+
- Keep in mind that [Legacy `Touchables`](/docs/components/legacy-touchables) from RNGH are rendering two additional views that may need to be styled separately to achieve desired effect (`style` and `containerStyle` props).
3636
- In order for the [gesture composition](/docs/fundamentals/gesture-composition) to work, all composed gestures must be attached to the same [`GestureHandlerRootView`](/docs/fundamentals/root-view).
3737

3838
## Multiple instances of Gesture Handler were detected

packages/docs-gesture-handler/docs/guides/upgrading-to-3.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,13 @@ code2={
246246

247247
### Buttons
248248

249-
RNGH3 introduces the [`Clickable`](/docs/components/clickable) component — a flexible, unified replacement for all previous button types. While `Clickable` shares the same logic as our standard buttons, it offers a more customizable API.
249+
RNGH3 introduces the [`Touchable`](/docs/components/touchable) component — a flexible, unified replacement for all previous button types. While `Touchable` shares the same logic as our standard buttons, it offers a more customizable API.
250250

251251
To help you migrate, here is the current state of our button components:
252252

253-
- [`Clickable`](/docs/components/clickable) - The recommended component. Can be used to replicate both `RectButton` and `BorderlessButton` effects by adjusting the `activeOpacity` and `activeUnderlayOpacity` props.
253+
- [`Touchable`](/docs/components/touchable) - The recommended component. Can be used to replicate both `RectButton` and `BorderlessButton` effects by adjusting the `activeOpacity` and `activeUnderlayOpacity` props.
254254
- To replace `RectButton`, add `activeUnderlayOpacity={0.105}`.
255255
- To replace `BorderlessButton`, add `activeOpacity={0.3}`.
256-
257256

258257
- Standard Buttons (Deprecated) - `BaseButton`, `RectButton` and `BorderlessButton` are still available but are now deprecated. They have been internally rewritten using the new Hooks API to resolve long-standing issues.
259258

0 commit comments

Comments
 (0)