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

Fix fontWeight again #806

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix fontWeight again #806

wants to merge 1 commit into from

Conversation

cknitt
Copy link
Member

@cknitt cknitt commented Mar 4, 2024

Fixes #775 again by reverting the fontWeight type definition to its pre-#793 state.

Unfortunately this is a breaking change yet again. But better than crashes on Android...

fhammerschmidt
fhammerschmidt previously approved these changes Mar 4, 2024
@Freddy03h
Copy link
Member

Freddy03h commented Mar 7, 2024

@cknitt which version of react-native are you using?

Number values are accepted since 0.71 : facebook/react-native#34598

I didn't experience any crash on Android or iOS.

@cknitt
Copy link
Member Author

cknitt commented Mar 7, 2024

That's weird as I had the crash on Android with 0.73.5.

@Freddy03h
Copy link
Member

I'm still on 0.71.14 so maybe there is a regression on this in react-native@0.73 but it's seems that those modifications and the tests still exists on main branch… so I don't know ^^'

@Freddy03h
Copy link
Member

I tested it on a 0.73.4 project and it work well on Android, without crashing.

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.

fontWeight broken in master
3 participants