Skip to content

fix: fab custom icon click and animation #1896

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 1 commit into from
May 25, 2020

Conversation

mMajch
Copy link
Contributor

@mMajch mMajch commented May 6, 2020

Motivation

#1876

FAB was not working properly when a function was passed to the icon prop. There was no animation and the icon didn't change according to a state.

I assume that after enabling using custom icons in FAB, sb forgot to add a new type to isValidIcon.

Before:
before

After:
after

Test plan

Reproduce the scenario in #1876

@callstack-bot
Copy link

Hey @mMajch, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

Copy link
Contributor

@Trancever Trancever left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@Trancever Trancever merged commit dfdb45f into callstack:master May 25, 2020
marchenk0va pushed a commit to marchenk0va/react-native-paper that referenced this pull request Jun 2, 2020
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.

3 participants