Skip to content

Infra/incubator to2 #1616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 24, 2021
Merged

Infra/incubator to2 #1616

merged 2 commits into from
Oct 24, 2021

Conversation

ethanshar
Copy link
Collaborator

Description

Replace implementation of Incubator.TouchableOpacity with the new one (Incubator.TouchableOpacity2)

Changelog

Update Incubator.TouchableOpacity implementation to use Reanimated v2


const onPress = useCallback(() => {
props.onPress?.(props);
}, [props.onPress, props.customValue]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we use props as an argument, could be that we need to specify it in the dependency array as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I made the assumption that the only prop that user is actually expecting is the customValue


const onLongPress = useCallback(() => {
props.onLongPress?.(props);
}, [props.onLongPress, props.customValue]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Also here, props warning

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same answer

@ethanshar ethanshar requested a review from mendyEdri October 24, 2021 12:26
@mendyEdri mendyEdri merged commit 55320c0 into master Oct 24, 2021
@ethanshar ethanshar deleted the infra/incubatorTO2 branch April 18, 2022 09:01
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