Skip to content

Enable useNative when passing activeScale and add its type #1997

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
Apr 19, 2022

Conversation

ethanshar
Copy link
Collaborator

Description

Expose activeScale prop and enable useNative by default when using it

WOAUILIB-2221

Changelog

Expose activeScale prop and enable useNative by default when using it

Copy link
Contributor

@lidord-wix lidord-wix left a comment

Choose a reason for hiding this comment

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

Small comment :)

const {borderRadius, paddings, margins, alignments, flexStyle} = modifiers;

if (useNative) {
if (useNative || !!activeScale) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a rare case but it won't work if the activeScale is equal to 0 even though it's a valid value.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed
Though passing 0 to activeScale is really weird (:

@lidord-wix lidord-wix merged commit 56cc759 into master Apr 19, 2022
lidord-wix pushed a commit that referenced this pull request Apr 24, 2022
* Enable useNative when passing activeScale and add its type

* Fix check on activeScale
@ethanshar ethanshar deleted the fix/TouchableOpacity_activeScale branch June 13, 2022 08:17
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