Skip to content
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

Updated the Touch Height for the ios device. #468

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kaushallalo
Copy link

Summary:

Test Plan:

I needed to customize the height of the touch area for the ios so i have made changes to the file.

@kaushallalo
Copy link
Author

Please review my changes and accept my PR

Copy link
Member

@BartoszKlonowski BartoszKlonowski left a comment

Choose a reason for hiding this comment

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

I'm trying to understand the reason of this change - does the default style created for iOS conflicts with the custom height for you?

@@ -285,7 +285,7 @@ SliderWithRef.defaultProps = {
};

let styles = StyleSheet.create(
Platform.OS === 'ios' ? {slider: {height: 40}} : {slider: {}},
Platform.OS === 'ios' ? {slider: {}} : {slider: {}},
Copy link
Member

Choose a reason for hiding this comment

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

With removing the height: 40 style, this line does actually nothing, and could even be simplified into:

Suggested change
Platform.OS === 'ios' ? {slider: {}} : {slider: {}},
{slider: {}}

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.

None yet

2 participants