opendomeco / nativescript-auto-fit-text

{N} Plugin to resize text to fit with
Apache License 2.0
13 stars 6 forks source link

Using the plugin with NativeScript 5.x #4

Open darxmac opened 6 years ago

darxmac commented 6 years ago

After upgrading my project to Nativescript 5.0.0, on iOS we crash out with this on views where the tag is used:

CONSOLE ERROR [native code]: ERROR TypeError: undefined is not an object (evaluating 'label.font')
CONSOLE ERROR [native code]: ERROR CONTEXT {
"view": {
"def": {
"nodeFlags": 1,
"rootNodeFlags": 1,
"nodeMatchedQueries": 0,
"flags": 0,
"nodes": [
{
"nodeIndex": 0,
"parent": null,
"renderParent": null,
"bindingIndex": 0,
"outputIndex": 0,
"checkIndex": 0,
"flags": 1,
"childFlags": 0,
"directChildFlags": 0,
"childMatchedQueries": 0,
"matchedQueries": {},
"matchedQueryIds": 0,
"references": {},
"ngContentIndex": null,
"childCount": 0,
"bindings": [
{
"flags": 8,
"ns": "",
"name": "text",
"nonMinifiedName": "text",
"securityContext": 0
}
],
"bindingFlags": 8,
"outputs": [],
"element": {
"ns": "",
"name": "AutoFitText",
"attrs": [
<…>
danielgek commented 6 years ago

hi @darxmac this plugin hasn't been released for ns 5 yet, might do it in the coming days, you can send a pr if you know the fix

zurie commented 5 years ago

any news on being updated to 5?

danielgek commented 5 years ago

@zurie didn't get any extra time to tackle this yet :/

gabrielsmelo commented 5 years ago

Any news about this update? o/

danielgek commented 5 years ago

Hi, @gabrielsmelo , still haven't managed to update this, i accept PR's tho