-
Notifications
You must be signed in to change notification settings - Fork 115
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
Selection does not always change #19
Comments
I tried simulate here and is working. You tried it with debug remote enable? Sometimes debug remote delay actions with animations. |
I started a debug build from the command line, but did not have a debugger connected. Remote logging was enabled, though. |
In my case, I can change the selection once only. If I wanna change the value without pressing on the button, it only work on the first time. Steps to simulate:
|
This is my code:
In your source code I saw this: react-native-switch-selector/index.js Line 58 in d629ed5
If in my |
same me |
react-native-switch-selector is broken (App2Sales/react-native-switch-selector#19) and has wrong-sized touch targets. SegmentedControl is a decent drop-in replacement (even though it doesn't attempt to support swiping).
Does not seem to work very reliably. Usually need to tap the item several times before it's selected. The color changes so the component seems to recognize the touch, but does not change the selection (and onPress not called). I have two items, each having a customImageView and no text. I have forced the width to 150 by wrapping the SwitchSelector to a View.
I tested in Android 8.1.
The text was updated successfully, but these errors were encountered: