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

Use Touchable component on SettingsItems #1451

Merged
merged 1 commit into from
Sep 10, 2019

Conversation

saifahn
Copy link

@saifahn saifahn commented Sep 9, 2019

Closes #1450.

This PR:

  • Changes SettingsItem to be based on TouchableWithoutFeedback so that an accidental press of the item does not cause an action to be fired.

The React Native docs recommend not using TouchableWithoutFeedback as feedback is important, but for now I think it fits our use-cases.

I used TouchableWithoutFeedback as each SettingsItem is touchable and
showing a change in opacity would be strange for the Language and disabled
items.
Copy link

@VolkerSchiewe VolkerSchiewe left a comment

Choose a reason for hiding this comment

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

LGTM

@VolkerSchiewe VolkerSchiewe merged commit 99813a9 into develop Sep 10, 2019
@VolkerSchiewe VolkerSchiewe deleted the 1450/make-settings-item-touchable branch September 10, 2019 16:27
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.

Make SettingsItem based on a 'Touchable' component
2 participants