nativescript

NativeScript WebView open url in default browser

半腔热情 提交于 2021-01-28 08:02:52
问题 I am trying to build app with WebView and click/tap events on URL-s inside WebView. Solution below opens external browser and URL but it loads same url content in webview as well. Is there a way to prevent loading new url inside webview? Here is my code sample. function onWebViewLoaded(webargs) { const page = webargs.object.page; const vm = page.bindingContext; const webview = webargs.object; webview.on(webViewModule.WebView.loadFinishedEvent, (args) => { let message = "Loading in progress...

Nativescript iOS build is rejected from itunes connect with “Unexpected CFBundleExecutable Key” error

与世无争的帅哥 提交于 2021-01-28 05:49:09
问题 When i build and upload the Nativescript project to itunes connect, an email stating that app has one or more issues is sent. Error message is Unexpected CFBundleExecutable Key . 回答1: Remove ios platform from project and add it again. Build the project and error will be fixed. tns platform remove ios tns platform add ios Then, build it again. 来源: https://stackoverflow.com/questions/51064942/nativescript-ios-build-is-rejected-from-itunes-connect-with-unexpected-cfbundle

Status bar overlap application on android

痴心易碎 提交于 2021-01-27 04:48:15
问题 I'm learning native script by following this course on udemy and on the first lines of my code, I'm facing a problem on Android. I just created a component with a Stacklayout and inside a Label. When I run this on both ios and android emulator, everything is ok on ios. But on android the label is behind the status bar. I tried to run it on my real android device and the result is the same. The project is really simple, I basically ran TNS create, deleted all unnecessary components and routing

Status bar overlap application on android

…衆ロ難τιáo~ 提交于 2021-01-27 04:47:14
问题 I'm learning native script by following this course on udemy and on the first lines of my code, I'm facing a problem on Android. I just created a component with a Stacklayout and inside a Label. When I run this on both ios and android emulator, everything is ok on ios. But on android the label is behind the status bar. I tried to run it on my real android device and the result is the same. The project is really simple, I basically ran TNS create, deleted all unnecessary components and routing

How to use ripple-lib with nativescript

半城伤御伤魂 提交于 2021-01-23 07:05:10
问题 Dear stackoverflowers, i'm having troubles with crypto in nativescript. I want to use a NPM package ripple-lib but found no luck with nativescript-nodeify. How can I make this package work with nativescript vuejs. I Need te make use of the crypto package aswell. EDIT: If i require the package I first get an error -> Error is: Cannot find module '/Websites/repo/tests/FirebaseVuejs/platforms/ios/FirebaseVuejs/app/tns_modules/nativescript-nodeify/patch-npm-packages.js'. than if i rebuild there

How to use ripple-lib with nativescript

半城伤御伤魂 提交于 2021-01-23 07:04:06
问题 Dear stackoverflowers, i'm having troubles with crypto in nativescript. I want to use a NPM package ripple-lib but found no luck with nativescript-nodeify. How can I make this package work with nativescript vuejs. I Need te make use of the crypto package aswell. EDIT: If i require the package I first get an error -> Error is: Cannot find module '/Websites/repo/tests/FirebaseVuejs/platforms/ios/FirebaseVuejs/app/tns_modules/nativescript-nodeify/patch-npm-packages.js'. than if i rebuild there

Can't Resolve 'async_hooks' in bluebird in Nativescript project

好久不见. 提交于 2021-01-07 01:39:09
问题 I trying to run my Nativescript project but I keep getting the following error regarding 'async_hooks' in bluebird (^v3.7.2). I have no idea what to do to start resolving this issue. Any help would be much appreciated. ERROR in ../node_modules/bluebird/js/release/promise.js Module not found: Error: Can't resolve 'async_hooks' in '/Users/.../node_modules/bluebird/js/release' @ ../node_modules/bluebird/js/release/promise.js 34:4-26 @ ../node_modules/bluebird/js/release/bluebird.js @ ./app

Can't Resolve 'async_hooks' in bluebird in Nativescript project

◇◆丶佛笑我妖孽 提交于 2021-01-07 01:37:29
问题 I trying to run my Nativescript project but I keep getting the following error regarding 'async_hooks' in bluebird (^v3.7.2). I have no idea what to do to start resolving this issue. Any help would be much appreciated. ERROR in ../node_modules/bluebird/js/release/promise.js Module not found: Error: Can't resolve 'async_hooks' in '/Users/.../node_modules/bluebird/js/release' @ ../node_modules/bluebird/js/release/promise.js 34:4-26 @ ../node_modules/bluebird/js/release/bluebird.js @ ./app

dynamic size textview nativescript when you are writing a message

风流意气都作罢 提交于 2021-01-05 07:15:47
问题 I make a messagerie service like whatsapp in nativescript with angular2 and i have a issue with the size(height) of the textview when you are writing a message in the android platform. i want the height increase when you add an other line (like whatsapp or facebook, etc). In IOS, it's simple. click on the link dynamic size of a textview in IOS my html template is (just the bottom of the screen) : <StackLayout class="message-box-container"> <GridLayout columns="auto, *, auto" class="message

dynamic size textview nativescript when you are writing a message

风格不统一 提交于 2021-01-05 07:14:16
问题 I make a messagerie service like whatsapp in nativescript with angular2 and i have a issue with the size(height) of the textview when you are writing a message in the android platform. i want the height increase when you add an other line (like whatsapp or facebook, etc). In IOS, it's simple. click on the link dynamic size of a textview in IOS my html template is (just the bottom of the screen) : <StackLayout class="message-box-container"> <GridLayout columns="auto, *, auto" class="message