Did you verify this is a real problem by searching Stack Overflow
Yes.
Tell us about the problem
Using style.fontWeight="500" in XML crashes app.
Which platform(s) does your issue occur on?
Both.
Please provide the following version numbers that your issue occurs with:
┌──────────────────┬─────────────────┬────────────────┬──────────────────┐
│ Component │ Current version │ Latest version │ Information │
│ nativescript │ 2.4.0 │ 2.4.0 │ Up to date │
│ tns-core-modules │ 2.4.0 │ 2.4.0 │ Up to date │
│ tns-android │ 2.4.0 │ 2.4.1 │ Update available │
│ tns-ios │ 2.4.0 │ 2.4.0 │ Up to date │
└──────────────────┴─────────────────┴────────────────┴──────────────────┘
Please tell us how to recreate the issue in as much detail as possible.
Create a new blank project and put style.fontWeight="500" anywhere in your XML.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
<Label text="y u crash? :(" style.fontWeight="500" />
Error
JavaScript error:
file:///app/tns_modules/ui/builder/builder.js:250:56: JS ERROR Error: Building UI from XML. @file:///app/routes/convo/convo.xml:116:29
↳Invalid value 500 for property fontWeight
Reactions are currently unavailable
Did you verify this is a real problem by searching Stack Overflow
Yes.
Tell us about the problem
Using style.fontWeight="500" in XML crashes app.
Which platform(s) does your issue occur on?
Both.
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
Create a new blank project and put style.fontWeight="500" anywhere in your XML.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
<Label text="y u crash? :(" style.fontWeight="500" />
Error