-
Notifications
You must be signed in to change notification settings - Fork 51
CardView shadow multiplying issue on Android #113
Comments
we are seeing the same issue @marklanhamhc |
We ended up not using the Hope this helps! |
strange. I am totally unsure, which plugin could cause interference. We have quite a lot in our app.. |
Yeah unfortunately, in my experience, sometimes you have to just go through each plugin, one at a time, disabling them and then testing to see if it makes a difference. Alternatively, try creating a simple app with just the cardview plugin and see if it still does it. |
Just a comment from what I recall about navigating, the views should be cached when you go to a route/page and come back, so it shouldn't be recreating (which would duplicate) the views. So this is likely a different native lib causing the issue as @marklanhamhc mentioned. I've never seen this in any apps I've done with cardview. If you can pinpoint that this happens with a plain NS app with the cardview plugin (maybe look at the demo and add a second page for navigation and let me test it) then I'd be glad to help fix it, but without that it's all guessing 😄. @Firetrip let me know if you have time to possibly fork and edit the demo app so I can quickly clone and run your fork demonstrating the issue with this plugin, thanks. |
Hi, I am having the same issue here. Only on Android. iOS is ok. Some news about this problem? I am running on a real device and NS 6.5.0 with Vue. Thanks |
@giulianimartini do you have material components installed? |
@Firetrip I only have a package called "nativescript-material-ripple" (https://market.nativescript.org/plugins/nativescript-material-ripple) installed on my project, but it is not used on the page of the strange behaviour. My package.json dependencies are: "dependencies": { Maybe some of these dependencies are the problem? |
can you try uninstalling the ripple plugin and then check if the bug still occurs? |
@Firetrip That's it! I removed the ripple plugin and the elevation shadow stopped of multiplying in each call to the navigateBack method. Do you know any more plugins that are giving the same problem? (Except the Akylas, as already mentioned). |
hey, |
There's an issue when you navigate between the pages on Android, the CardView shadow seems to get heavier each time you navigate back to the page.
Here's a screen recording to show whats happening:
https://www.dropbox.com/s/hbyofz6o1tt7l96/CardView-shaddowIssueAndroid.mov?dl=0
Nativescript: 6.1.0
Android version: 6.1.0
@nstudio/nativescript-cardview: ^1.0.0
tns-core-modules: ^6.1.0
The text was updated successfully, but these errors were encountered: