Closed ferrannp closed 4 years ago
What should be the duration?
I don't have a number, we should compare it to native app. Or hey, we can use the native component (It is in RN repo).
we can use the native component (It is in RN repo)
it's the stock OS one. it'll not be material themed on pre-lollipop.
I have used AZ Screen Recorder for Android to look into it a bit deeper.
First one is Android 6.0 - settings page. It takes ~0.4s to finish.
Somewhere in the middle (0.2s) the checkbox transition is over.
Then it's still another 0.2s to finish the ripple effect and background color transition.
Second one is Paper inside the Expo app. It takes ~0.7s to finish.
The empty checkbox appeared a bit faster, but it takes some more time before it reaches the full size. The background & ripple effect goes darker than native.
Somewhere in the middle (0.35s) the checkbox transition is over.
For Paper it takes more time before the background goes back to the original color & ripple is gone completely.
Thanks @gawrysiak ! We'll try to use it :)
Hello 👋, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.
Checkbox animation duration should be configurable with a animation.scale
property from theme.
It should be implemented in a same way as in Menu
Hello 👋, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.
When I click the checkbox it takes some delay to show the tick. how to stop the animation. my code is `<TouchableOpacity activeOpacity={0.6} onPress={()=> this.toggleSelected(item)}>
</TouchableOpacity>}`
Try to match it to native Android where it is faster.