Comments (11)
we are seeing the same issue @marklanhamhc
Do you have a workaround?
from nativescript-cardview.
We ended up not using the nativescript-cardview
plugin and changed the design of our app. That said, we started to use the nativescript-cardview
plugin again on one of our new apps but this time we changed one of our other plugins from nativescript-advanced-webview
to nativescript-awesome-webview-with-custom-menu-items
which might have been causing the issue and we've not seen this issue since.
Hope this helps!
from nativescript-cardview.
strange.
I tried to find the issue yesterday and played around with the underlaying native component on android. I managed to set the elevation (which is the property that causes the issue) to 0. But as soon as I set a positive number it began stacking again. Setting it to 0 and then to a e.g. 10 again, also did not help.
Also setTimeout or requestLayout() did not help resetting the elevation of the CardView.
I am totally unsure, which plugin could cause interference. We have quite a lot in our app..
from nativescript-cardview.
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.
from nativescript-cardview.
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.
from nativescript-cardview.
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
from nativescript-cardview.
@giulianimartini do you have material components installed?
i did a lot of debugging and filed the following bug report, which i think is the actual problem, or at least the two plugins cause some unexpected interaction behavior: nativescript-community/ui-material-components#135 (comment)
from nativescript-cardview.
@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": {
"@nativescript/theme": "~2.3.3",
"@nstudio/nativescript-cardview": "^1.0.0",
"axios": "^0.19.2",
"btoa": "^1.2.1",
"nativescript-fontawesome": "^1.0.0",
"nativescript-fonticon": "^2.0.0",
"nativescript-iqkeyboardmanager": "^1.5.1",
"nativescript-material-ripple": "^2.5.4",
"nativescript-theme-core": "^2.0.24",
"nativescript-ui-listview": "^8.1.2",
"nativescript-vue": "~2.5.0",
"nativescript-vue-fonticon": "^1.0.3",
"tns-core-modules": "^6.5.1",
"vuex": "^3.3.0"
},
Maybe some of these dependencies are the problem?
from nativescript-cardview.
can you try uninstalling the ripple plugin and then check if the bug still occurs?
from nativescript-cardview.
@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).
from nativescript-cardview.
hey,
no sadly not.
But it seems it is some sort of interference between all Akylas plugins and the cardview plugin. Maybe somebody can figure out why this is happening.
from nativescript-cardview.
Related Issues (20)
- Card not working in Tabview in Nativescript-vue HOT 1
- minimum android sdk version HOT 2
- How to get rid of whitespaces ios
- Cardview radius working differently for big screen resolutions HOT 1
- Cannot read property 'obtainStyledAttributes' of undefined HOT 1
- Feat: Add new android shadow color properties HOT 2
- No Shadow/Elevation Android API 28
- Tap event stops working after orientation change or navigation HOT 1
- How to import CardView in a module HOT 1
- How to get height of CardView element?
- Not able to migrate app to nativescript 6 which supports only webPack work flow. HOT 3
- Radius is not working on iOS HOT 4
- Nativescript Vue instructions are wrong HOT 1
- Support for tns-core-modules > 6.2
- iOS Issue: No border box and show wrongly applied HOT 3
- App crashes after update HOT 2
- Release/document 2.0.1
- Disable Object is Cardview HOT 1
- Pressed item look HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-cardview.