-
-
Notifications
You must be signed in to change notification settings - Fork 245
iOS ScrollView when trying to scroll crashes on Physical and Emulator #201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey guys! I'm having the same issue. Any ideas what may be happening? This is my log:
|
Well, I found a workaround and discovered why it isn't easy to catch. The workaround is to call another class before this one. You must set a timeout before calling the $navigateTo method otherwise it will crash (using the @loaded or the mounted() method). Well, I created a second splash screen that waits 1 sec before calling the Home class and then everything works fine with any component. I hope it gives any light to the main developers and helps anyone who is having a hard time with it
|
Also have this issue, has a solution been found, or has this even been acknowledged as being an issue? :) |
+1 to have this issue solved ASAP. This library is the future. |
I can confirm that the workaround @andreMariano90 posted indeed works. If anyone is struggling with implementing this, let me know, maybe I can help :) |
Was banging my head against the wall on this one also - workaround does do the job. |
Why there is no fix yet? :( |
@yauri-io we don't know the cause, it is most likely an issue with NativeScript-Core rather than NativeScript-Vue. If you find a fix, feel free to submit a pull request, it's open source. |
@rigor789 I wish I could help but I'm not familiar with NativeScript :( |
Hello, I met this issue today. It happens when I click any list item in my ListView. Error message:
Here is my ListView code <!-- Home.vue -->
<ListView for="item in listOfItems" @itemTap="onItemTap">
<v-template>
<StackLayout class="list-item">
<FlexboxLayout>
<Label class="icon" :text="String.fromCharCode(item.icon)" />
<Label style="margin-left: 15" flexGrow="1" :text="item.text" />
<Label v-if="$index === 0" class="broker-type">{{this.useWatson ? 'watson' : 'local'}}</Label>
<Label class="icon" :text="String.fromCharCode(0xe930)" />
</FlexboxLayout>
</StackLayout>
</v-template>
</ListView> I worked around this problem by removing Now, I am rendering home page directly new Vue({
store,
render: h => h(Home)
}).$start(); And the app works again. BTW , I am trying nativescript-vue from last week. |
Is there any fix yet ? I am facing the issue on ios. |
I have the same problem. And partly I decided it as follows:
But when I add the ActionBar to the Page then the application crashes when I go through this routing and an error occurs in the console:
|
@Reached If you could help me out it would be great. I have tried @andreMariano90 solution but it didnt work. Maybe I'm putting the code in the wrong place. Here is my code. new Vue({
router,
methods: {
mounted(){
var vm = this;
setTimeout(function () {
//calls the class that was crashing when calling the first time
//the 'clearHistory' class ignore this class and set the Home class
vm.$navigateTo(Home,{clearHistory:true});
},1000);
}
}
}).$start(); Thanks for any help. |
Having the same issue, but found solution
|
@rickdps sorry, somehow your message got lost in my notifications feed. Don't know if you managed to fix it, otherwise here is what I did:
<template>
<Page class="page">
<Label>Splash Page</Label>
</Page>
</template>
<script>
import Newsfeed from './Newsfeed';
export default {
mounted() {
setTimeout(() => {
//calls the class that was crashing when calling the first time
//the 'clearHistory' class ignore this class and set the Newsfeed class as the first one
this.$navigateTo(Newsfeed, {clearHistory: true});
}, 1);
}
}
</script>
First add an entry so that the router knows about your Splash component (page): {
path: '/splash',
component: Splash,
name: 'splash-page',
meta: {
title: 'Splash',
requiresAuth: false
}
}, Then further down in the file, make sure that the app is redirected to the Splash component when opened: router.replace('/splash');
|
Probably is a similar issue to his one: https://github.com/nativescript-vue/nativescript-vue/issues/24
My code works fine on android but it crashes on iOS
Android Sample Running:

IOS Sample Crashing

The code is:
Inside the 'tarefas' component:
Inside the tarefas component I don't have any tap event
The text was updated successfully, but these errors were encountered: