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

How to pass fontFamily to useAnimatedStyle ? #483

Open
hugoh59 opened this issue Mar 21, 2022 · 1 comment
Open

How to pass fontFamily to useAnimatedStyle ? #483

hugoh59 opened this issue Mar 21, 2022 · 1 comment

Comments

@hugoh59
Copy link

hugoh59 commented Mar 21, 2022

When trying to set fontFamily style prop inside useAnimatedStyle, it give me an error:

Unrecognized font family 'Roboto-Regular'

const _priceStyleMinified = useAnimatedStyle(() => {
        return(
            {
                opacity: isActive.value ? 1 : 0,
                backgroundColor: 'white',
                position: 'absolute',
                right: 60,
                top: 22,
                fontSize: 20,
                fontWeight: '700',
                color: 'rgb(32,32,32)',
                letterSpacing: .4,
                textAlign: 'right',
                fontFamily: 'Roboto-Regular'
            }
        )
    });
@Julienblc
Copy link

Any solution for this ?

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

2 participants