Skip to content

How to pass fontFamily to useAnimatedStyle ? #483

Open
@hugoh59

Description

@hugoh59

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'
            }
        )
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions