How to use the nativescript-vue.nextTick function in nativescript-vue

To help you get started, we’ve selected a few nativescript-vue examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Cambalab / ns-vue-radio / app / main.js View on Github external
// Prints Vue logs when --env.production is *NOT* set while building
Vue.config.silent = (TNS_ENV === 'production')

Vue.registerElement('BottomNavigationBar', () => require('nativescript-bottom-navigation').BottomNavigation)
Vue.registerElement('BottomNavigationTab', () => require('nativescript-bottom-navigation').BottomNavigationTab)
Vue.registerElement('OnTabSelectedEventData', () => require('nativescript-bottom-navigation'))
Vue.registerElement('CardView', () => require('nativescript-cardview').CardView)

const app = new Vue({
  store,
  i18n,
  render: h => h('frame', [h(Home)])
})

Vue.nextTick(() => {
  store.dispatch('loadDefaultLanguage')
  app.$start()
})