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

Support animating Fontawesome color #53

Open
yosikal opened this issue Apr 23, 2020 · 4 comments
Open

Support animating Fontawesome color #53

yosikal opened this issue Apr 23, 2020 · 4 comments

Comments

@yosikal
Copy link

yosikal commented Apr 23, 2020

Currently I didn't find any way to animate the colors of Fontawesome icon. Trying to call
Animated.createAnimatedComponent(Fontawesome) generates an error.

@robmadole
Copy link
Member

This project uses react-native-svg under the hood. Have you tried searching for animation guidance for that project?

@Strate
Copy link

Strate commented Nov 25, 2020

@robmadole animating inner components of react-native-svg is possible, but need to use Animated-version of svg components. For example, instead of Path use createAnimatedComponent(Path). For now it is not possible with react-native-fontawesome use animated version of svg components, as it is hardcoded.

Possible solution would be to pass svgObjectMap as prop to FontAwesomeIcon component.

@jvfalco1
Copy link

Anything about this?

@jvfalco1
Copy link

jvfalco1 commented May 2, 2023

@mlwilkerson @robmadole

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

No branches or pull requests

4 participants