nativescript-vue

NativeScript vue, vuex and urlhandler

自古美人都是妖i 提交于 2019-12-23 23:43:24
问题 Edit I'm using https://github.com/hypery2k/nativescript-urlhandler to open a deep link within my app - using NativeScript vue, and vuex. It seems that in order to get at the methods needed to do routing [ $navigateTo etc] this plugin needs to be set up slightly differently from the examples given in docs. import Vue from "nativescript-vue"; import Vuex from "vuex"; Vue.use(Vuex); import { handleOpenURL } from 'nativescript-urlhandler'; new Vue({ mounted() { handleOpenURL( (appURL) => {

Integrating nativescript-paytm plugin in nativescript-vue application

流过昼夜 提交于 2019-12-22 08:02:11
问题 I'm having a nativescript-vue application where I want to integrate nativescript-paytm plugin, I created a method on click event: payNow() which contains all the necessary details of Paytm as described in Readme.md/documentation/demo app. import { Paytm, Order, TransactionCallback, IOSCallback } from "@nstudio/nativescript-paytm"; const paytm = new Paytm() methods: { payNow() { paytm.setIOSCallbacks({ didFinishedResponse: function(response) { console.log(response); }, didCancelTransaction:

Animating height property

烂漫一生 提交于 2019-12-13 03:49:19
问题 Hello there stackoverflow and nativescript users! I have a problem with animating a view. What I want: I am trying to create a view where you can click and it opens op a new view below animated pushing all other views further down. Problem: Only the elements inside are animated or nothing is animated at all. What I tried: I tried using the nativescript UI Animations but without success because the height property is not supported. My version: https://gyazo.com/130c2b3467656bcc104c9b8e2c860d94

ReOrder List in NativeScript Vue

泪湿孤枕 提交于 2019-12-11 19:48:39
问题 I'm pretty new to nativescript-vue, but I got an app to display a nice list as fetched from an api. Now I'd like to be able to have the user reorder it. The documentation seems aged, so I'll just post this example of a list that at least displays, though cannot be reordered: <template> <Page class="page"> <ActionBar title="ListView with Avatars/Thumbnails" class="action-bar" /> <ScrollView> <ListView for="item in items" class="list-group" @itemTap="onItemTap"> <v-template> <GridLayout class=

Integrating nativescript-paytm plugin in nativescript-vue application

北城以北 提交于 2019-12-05 13:22:58
I'm having a nativescript-vue application where I want to integrate nativescript-paytm plugin, I created a method on click event: payNow() which contains all the necessary details of Paytm as described in Readme.md/documentation/demo app. import { Paytm, Order, TransactionCallback, IOSCallback } from "@nstudio/nativescript-paytm"; const paytm = new Paytm() methods: { payNow() { paytm.setIOSCallbacks({ didFinishedResponse: function(response) { console.log(response); }, didCancelTransaction: function() { console.log("User cancelled transaction"); }, errorMissingParameterError: function(error) {

Which is better vue-native or nativescript-vue?

会有一股神秘感。 提交于 2019-12-03 05:46:07
问题 I would like to start a mobile app with VueJS. Can anyone please suggest which Framework I can choose between vue-native or nativescript-vue ? 回答1: Vue-Native is nothing but a wrapper around ReactNative. So the question becomes ReactNative vs NativeScript ? In my opinion, it's NativeScript . Supports frameworks like Angular & Vue Works with Core JavaScript / TypeScript too Better code sharing 100% access to native apis ReactNative got a huge community and range of plugins, but the problem

Which is better vue-native or nativescript-vue?

▼魔方 西西 提交于 2019-12-02 20:28:12
I would like to start a mobile app with VueJS. Can anyone please suggest which Framework I can choose between vue-native or nativescript-vue ? Vue-Native is nothing but a wrapper around ReactNative. So the question becomes ReactNative vs NativeScript ? In my opinion, it's NativeScript . Supports frameworks like Angular & Vue Works with Core JavaScript / TypeScript too Better code sharing 100% access to native apis ReactNative got a huge community and range of plugins, but the problem beings when you want to customise. Every app is unique in it's own way, it becomes really hard to customise a

DismissSoftInput() for search-bar for Nativescript-Vue

*爱你&永不变心* 提交于 2019-12-02 14:27:51
问题 Explaining the problem: The search-bar has no way of dismissing an open keyboard. This makes the search-bar a quite unusable as the normal user pattern is that the user search for something and then press the item and gets navigated there. On Android (at least on >= 5.x), the open keyboard will continue to stay open, even on the new page. Referring to the question on Github, anyone how to do that for Nativescript-Vue and not for Nativescript with Typescript Updated: Added Playground: https:/

NativeScript WebView loading local resources in src document

穿精又带淫゛_ 提交于 2019-12-02 12:13:09
问题 I am loading a local html file as the src for a NativeScript WebView component. Contained within the html file are script tags which reference javascript files that are also local resources (bundled within the app). The html file loads into the WebView just fine, but the referenced script file (mylib.js) does not. I suspect a pathing problem but I have tried almost every variation I can think of to no avail. My project is actually a NativeScript-Vue project and is as follows: App.vue

NativeScript WebView loading local resources in src document

我的梦境 提交于 2019-12-02 03:45:56
I am loading a local html file as the src for a NativeScript WebView component. Contained within the html file are script tags which reference javascript files that are also local resources (bundled within the app). The html file loads into the WebView just fine, but the referenced script file (mylib.js) does not. I suspect a pathing problem but I have tried almost every variation I can think of to no avail. My project is actually a NativeScript-Vue project and is as follows: App.vue <template> <Page @loaded="onPageLoaded"> <ActionBar title="Welcome to WebView"/> <GridLayout> <WebView ref=