You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You said fontFamily and fontWeight are optional in README.md, but it will crash without these 2 options on Android.
I must write
var result = await MeasureText.widths({
texts: ['test'],
fontSize: 25,
height: 60,
fontFamily: null, // without this, it will crash
fontWeight: '', // without this, it will crash
});
to get it to work.
This will crash:
var result = await MeasureText.widths({
texts: ['test'],
fontSize: 25,
height: 60,
// without `fontFamily` and `fontWeight` here
});
Versions
react-native: 0.55.4
react-native-measure-text: 1.0.0-beta
The text was updated successfully, but these errors were encountered:
s20208413
changed the title
BUG: fontFamily and fontSize are not optional on Android
BUG: fontFamily and fontWeight are not optional on Android
Jun 20, 2018
You said
fontFamily
andfontWeight
are optional inREADME.md
, but it will crash without these 2 options on Android.I must write
to get it to work.
This will crash:
Versions
0.55.4
1.0.0-beta
The text was updated successfully, but these errors were encountered: