Skip to content

Rename Clickable to Touchable#4063

Open
m-bert wants to merge 3 commits intomainfrom
@mbert/rename-clickable
Open

Rename Clickable to Touchable#4063
m-bert wants to merge 3 commits intomainfrom
@mbert/rename-clickable

Conversation

@m-bert
Copy link
Copy Markdown
Contributor

@m-bert m-bert commented Apr 8, 2026

Description

Clickable was initial name for our new component, but we all agreed that this name is not the best. Since Touchable was basically free - it was used with suffixes, like TouchableOpacity, we decided to rename Clickable to Touchable

Test plan

yarn ts-check and yarn lint-js

Copilot AI review requested due to automatic review settings April 8, 2026 10:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames the new v3 button-like component from Clickable to Touchable across the public v3 API surface, internal implementation, tests, and example app.

Changes:

  • Rename exported component/type: ClickableTouchable, ClickablePropsTouchableProps
  • Update v3 barrel exports (src/v3/index.ts, src/v3/components/index.ts) to expose the new names
  • Update tests and the common-app examples to use Touchable

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/react-native-gesture-handler/src/v3/index.ts Switches v3 public exports to Touchable / TouchableProps.
packages/react-native-gesture-handler/src/v3/components/Touchable/TouchableProps.ts Renames the props type to TouchableProps.
packages/react-native-gesture-handler/src/v3/components/Touchable/Touchable.tsx Renames the component and wrapper to Touchable.
packages/react-native-gesture-handler/src/v3/components/index.ts Updates the v3 components barrel export from Clickable to Touchable.
packages/react-native-gesture-handler/src/v3/components/GestureButtons.tsx Updates deprecation guidance strings to reference Touchable.
packages/react-native-gesture-handler/src/tests/api_v3.test.tsx Updates component imports/usages and test descriptions to Touchable.
apps/common-app/src/new_api/index.tsx Updates example registry entries/imports to the new touchable example modules.
apps/common-app/src/new_api/components/touchable/index.tsx Renames example to use Touchable / TouchableProps and related identifiers/text.
apps/common-app/src/new_api/components/touchable_stress/index.tsx Updates the stress test example to use Touchable and renamed identifiers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

m-bert and others added 2 commits April 8, 2026 13:33
…eButtons.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@m-bert m-bert requested a review from j-piasecki April 8, 2026 11:39
@m-bert m-bert enabled auto-merge (squash) April 8, 2026 11:42
@m-bert m-bert mentioned this pull request Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants