Skip to content

Set isPressable for onPressIn/Out#34944

Closed
rozele wants to merge 1 commit into
facebook:mainfrom
rozele:export-D40264432
Closed

Set isPressable for onPressIn/Out#34944
rozele wants to merge 1 commit into
facebook:mainfrom
rozele:export-D40264432

Conversation

@rozele
Copy link
Copy Markdown
Contributor

@rozele rozele commented Oct 11, 2022

Summary:
In react-native-windows, the ability to detect a press event on a virtual span is dependent on setting a native only isPressable prop.

This modifies the Text component to include onPressIn and onPressOut. As a side-effect, this will also lazily initialize the pressability config when onPressIn or onPressOut only is set.

Changelog:
[General][Fixed] - Pressability for text with only onPressIn / onPressOut props

Differential Revision: D40264432

Summary:
In react-native-windows, the ability to detect a press event on a virtual span is dependent on setting a native only `isPressable` prop.

This modifies the Text component to include `onPressIn` and `onPressOut`. As a side-effect, this will also lazily initialize the pressability config when `onPressIn` or `onPressOut` only is set.

Changelog:
[General][Fixed] - Pressability for text with only `onPressIn` / `onPressOut` props

Differential Revision: D40264432

fbshipit-source-id: 9c67bae02a4c3cb76d41e4acffe9363c8c309707
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Oct 11, 2022
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D40264432

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,768,615 +54
android hermes armeabi-v7a 7,169,711 +53
android hermes x86 8,081,893 +63
android hermes x86_64 8,053,446 +53
android jsc arm64-v8a 9,629,717 +4
android jsc armeabi-v7a 8,394,122 +2
android jsc x86 9,579,165 +1
android jsc x86_64 10,172,216 +14

Base commit: f353119
Branch: main

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: f353119
Branch: main

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by Eric Rozell in f1f7824.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 12, 2022
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been reverted by a575472.

mohitcharkha pushed a commit to mohitcharkha/react-native that referenced this pull request Oct 17, 2022
Summary:
Pull Request resolved: facebook#34944

In react-native-windows, the ability to detect a press event on a virtual span is dependent on setting a native only `isPressable` prop.

This modifies the Text component to include `onPressIn` and `onPressOut`. As a side-effect, this will also lazily initialize the pressability config when `onPressIn` or `onPressOut` only is set.

Changelog:
[General][Fixed] - Pressability for text with only `onPressIn` / `onPressOut` props

Reviewed By: yungsters

Differential Revision: D40264432

fbshipit-source-id: 583b210127d8f020ad98030d4a5381c302e88d2a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner Reverted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants