◐ Shell
clean mode source ↗

Fix fontWeight again by cknitt · Pull Request #806 · rescript-react-native/rescript-react-native

@cknitt Hi! Thank you for all the informations! I opened an issue an the react-native repo react/react-native#45285 and the error only happen in Dev mode with the use of Stylesheet.create and without the use of an array in the style prop.

I never experienced the issue on my project because now with dynamic style (dark/light mode) there's always a variable color to dynamically pass to the style prop in an array.

And because the error is not effective on Release mode, I never saw it on crashlytics (even with 2 text in my entire app where the issue should happen).

It's possible to create a patch-package with this tiny fix that will be fixed soon I hope : https://github.com/facebook/react-native/pull/45299/files

So, what's your opinion about reverting the type to the polymorphic variant? I think it would be nice not to have to rewrite the type for everyone for an issue that happen only in Dev mode in the old architecture.

Thank you.