Skip to content

Basic Fantom Tests for Pressable#53181

Closed
CalixTang wants to merge 1 commit into
facebook:mainfrom
CalixTang:export-D79745215
Closed

Basic Fantom Tests for Pressable#53181
CalixTang wants to merge 1 commit into
facebook:mainfrom
CalixTang:export-D79745215

Conversation

@CalixTang
Copy link
Copy Markdown
Contributor

Summary:
Adds basic Fantom tests for the React Native component.

Following T233710053, adds tests for some of the listed props and refs.

Covered props:

  • children
  • disabled
  • onPress
  • style

Ref:

  • Pressable is a Native Component and has the correct tag

I did not cover the rest of the listed props due to Fantom not having suitable events to trigger to test them and/or inease of implementing functionality to do so.

Changelog:

[Internal]

Reviewed By: andrewdacenko

Differential Revision: D79745215

Summary:
Adds basic Fantom tests for the <Pressable> React Native component.


Following T233710053, adds tests for some of the listed props and refs.

Covered props:
* children
* disabled
* onPress
* style

Ref:
* Pressable is a Native Component and has the correct tag


I did not cover the rest of the listed props due to Fantom not having suitable events to trigger to test them and/or inease of implementing functionality to do so.

## Changelog:

[Internal]

Reviewed By: andrewdacenko

Differential Revision: D79745215
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 8, 2025
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by Calix Tang in e0ea781

When will my fix make it into a release? | How to file a pick request?

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 8, 2025
@react-native-bot react-native-bot added the Merged This PR has been merged. label Aug 8, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in e0ea781.

@liamc1011
Copy link
Copy Markdown

liamc1011 commented Aug 8, 2025

Not very good, there are about 6-7 changes I would make.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants