Can you please share any blog / link, which walk thorugh the step how and where to user hooks in nativescript?
Also how can i include enviornment config depending on app environment while building / debugging and bundling.
thanks
The README.md of the nativescript-hooks plugin
Related
I building Bookmarks manager app in Nativescript. i am looking for a plugin related to web intent, but i could find any. If any one have any idea to achieve similar functionality like this React native plugin for intent, Please help
Thanks in advance
It's quite straight forward on Android, you would use JavaProxy to create an activity Or simply use your NativeScript activity if you want to open your application itself upon sharing, add the same intent-filter under that activity in AndroidManifest.xml file.
With iOS, there is an option feature request for building app extensions. But still there are some POCs for app extensions available on Github which seems to require some manual steps as mentioned in the Github issue.
I'm trying to migrate an Angular app to a shared codebase with Nativescript using the new #nativescript/schematics, however, I'm having problems importing my Angular library when building the mobile version of the app. I used the angular-cli to create the library (ng generate library).
For the web version, all I had to do was build the library separately using ng build library-name which then allowed me to import it into the main application.
How can I build a mobile version of the library that can be imported into the main application when running tns run ios --bundle? I've already migrated the components and module of the library with appropriate *.tns files.
Any help is appreciated
I had the same problem. Nativescript cli do not have this feature where we can build an angular library into npm package and use it in other projects.
I tried a workaround and it worked for me. Write a script to copy all of your project files into another directory and replace all *.tns.ts, *tns.html and *.tns.scss. files with *.ts, *.html and *.scss respectively. Then build these files using regular ng command. You can add a build configuration for the same in angular.json file to build from the copied directory. I hope it helps.
I'm sorry this is just a hyperlink answer but the space required to answer this, in my opinion, is way too large. I just finished finalizing a repo I've been working on to do exactly this. I have a whole slew of angular web libraries that I now want to make available for use on mobile using NativeScript. I have put everything I have learned so far into this repo and I hope it helps you too.
Thanks for the final push/idea #Rohit, a script for doing what he suggests is in the test-lib/gulpfile.js of this repo.
I am trying to install Now-UI-Kit in Laravel 5.6 with vue.js implementation but not having any success.
URL to Now-UI-Kit: https://demos.creative-tim.com/now-ui-kit/index.html
I was able to install the plain UI Kit by following some very simple steps documented here:
UI Kit Here: https://getuikit.com/
Laravel Steps: https://github.com/kawax/laravel-uikit
But I couldn't do similar steps for the now-ui-kit.
Both UI KIt and Now-UI-KIt are installed with NPM in node_modules.
Can someone please guide?
Alright - turned out to be a simple task. Put all the css files in a sub directory under your assets folder and point to them in app.scss. laravel-mix will take care of them automatically.
I am developing cordova windows app.
I need solution to add facebook and google login to my app.
If any one knows, please provide steps to integrate.
Thanks.
The easiest way to do this would be by adding plugins to your app. Here are a couple I found on npmjs.com (note that there are others out there -- this was just a cursory search):
cordova-plugin-facebook
cordova-plugin-googleplus
Instructions on how to install and use these plugins can be found at the links above. Generally to install a plugin, it's a call to:
cordova plugin add <pluginid> --save
This adds the plugin to your app (you have to be in that app directory for the call to work), and adds a line to your config.xml file.
Is it possible to just commit things "quickly" to heroku without to have the whole thing parsed/compiled/reinstalled ? Sometimes i feel like it is not needed (for html or css for example)
Thanks for you help
The short answer is no.
The longer answer is yes, provided you are prepared to write your own custom buildpack. It also depends on your technology. Most Heroku buildpacks compile code from source as part of the application deployment. It is possible to create a custom buildpack that takes a pre-compiled binary instead, only updating the application's data or configuration.
For more information see:
https://devcenter.heroku.com/articles/buildpacks
http://www.petekeen.net/introduction-to-heroku-buildpacks