Nativescript: Question: Core Module change causing style to break

Created on 22 Aug 2017  路  9Comments  路  Source: NativeScript/NativeScript

Please, provide the details below:

I normally wouldn't open an issue for this type of bug without investigating but too many people have hit the same issue and I don't recall any changes in the plugins in quite some time and I haven't had time to debug the issue. The issue is on both cardview and floatingactionbutton plugin repos have been opened with the same issue recently.

https://github.com/bradmartin/nativescript-cardview/issues/64
https://github.com/bradmartin/nativescript-floatingactionbutton/issues/57

Which platform(s) does your issue occur on?

Android for sure

Please provide the following version numbers that your issue occurs with:

See issue

Please tell us how to recreate the issue in as much detail as possible.

Run latest core modules with either the cardview or fab plugin as described in the issue on the repos. Someone has reported a revert in the core-modules fixed the issue and then when updating to the latest it breaks again.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Demo code on repos should be sufficient.

bug done android ready for test

Most helpful comment

Hi @bradmartin,
Thank you for reporting this issue.
We reviewed the described scenario and indeed there is an issue with getting drawable from the native view, which in some cases is a null object.
We will investigate further how to resolve this problem and will provide a fix inside the tns-core-modules.
Regards,
@tsonevn

All 9 comments

Hi @bradmartin,
Thank you for reporting this issue.
We reviewed the described scenario and indeed there is an issue with getting drawable from the native view, which in some cases is a null object.
We will investigate further how to resolve this problem and will provide a fix inside the tns-core-modules.
Regards,
@tsonevn

Hi @bradmartin

Thanks for reporting this. It is fixed in the master branch with this PR: https://github.com/NativeScript/NativeScript/pull/4742 and will be live in 3.2

Hi All,

Any update on this? anybody figured out the reason and way to fix it.?

@hshristov - I believe an issue might still be present on Android 6 per this comment https://github.com/bradmartin/nativescript-floatingactionbutton/issues/57#issuecomment-331425213

Thanks Brad, I will try this on 7 then..!
But there's gotta be a reason for this..! I'm facing same kind of issue with FAB and CardView.

@bradmartin @jafsparrow @SP1966
Addition to the original fix because of bug in Android 6.0 API 23
https://github.com/NativeScript/NativeScript/pull/4959

Thank you @hshristov.

for FAB and CardView
I think explicitly giving the color property is solving the issue (can be used a hack fix).

I was also testing the dropdown plugin which is also breaking if some properties are not given in css (specifying the properties in css fixes the issue).

thanks guys for your helps..

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NordlingDev picture NordlingDev  路  3Comments

hshristov picture hshristov  路  3Comments

Pourya8366 picture Pourya8366  路  3Comments

valentinstoychev picture valentinstoychev  路  3Comments

minjunlan picture minjunlan  路  3Comments