Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork245
Closed
Labels
Description
When I try to animate a view using ref to access the template element the app crashes and closes, but I can't see any errors. Code:
constbtnNewTrip=ref()constbtnShowMore=ref()constshowButton=(view:View)=>{view.animate({scale:{x:1,y:1},duration:500})}onMounted(()=>{setTimeout(()=>{console.log(btnNewTrip.value.nativeView)showButton(btnNewTrip.value.nativeView)showButton(btnShowMore.value.nativeView)},5000)})
The console log shows me that it is a view, however the app fails, console.log:JS: StackLayout(46)
By the way, i'm on android