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

Font Weight Has No Effect #22

Closed
marcusFormworks opened this issue Jun 11, 2024 · 1 comment
Closed

Font Weight Has No Effect #22

marcusFormworks opened this issue Jun 11, 2024 · 1 comment

Comments

@marcusFormworks
Copy link

I am trying to apply font weight through the following way:

<View>
            <Text>normal</Text>
            <Text style={tw('text-2xl font-bold')}>text-2xl font-bold</Text>
            <Text style={tw('text-xl font-semibold')}>
                text-xl font-semibold
            </Text>
            <Text style={tw('text-lg font-medium')}>text-lg font-medium</Text>
            <Text style={tw('text-base font-normal')}>
                text-base font-normal
            </Text>
            <Text style={tw('text-sm font-light')}>text-sm font-light</Text>
            <Text style={tw('text-xs font-extralight')}>
                text-xs font-extralight
            </Text>
            <Text style={tw('font-bold')}>font-bold</Text>
            <Text style={tw('font-semibold')}>font-semibold</Text>
            <Text style={tw('font-medium')}>font-medium</Text>
            <Text style={tw('font-normal')}>font-normal</Text>
            <Text style={tw('font-light')}>font-light</Text>
            <Text style={tw('font-extralight')}>font-extralight</Text>
        </View>

although it only outputs the following:
Screenshot 2024-06-11 at 14 56 59

Is there a fix in the works at all? Thanks!

@marcusFormworks
Copy link
Author

my apologies, I hadn't read this doc on fonts!

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

1 participant