<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Native Nick on Medium]]></title>
        <description><![CDATA[Stories by Native Nick on Medium]]></description>
        <link>https://medium.com/@NativeNick?source=rss-9d0a793af5cb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xETOgYXbpj6MKYp7pfr9lg.jpeg</url>
            <title>Stories by Native Nick on Medium</title>
            <link>https://medium.com/@NativeNick?source=rss-9d0a793af5cb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 06:50:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@NativeNick/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How Claude Code Helped Me Ship a Production Mobile App in 14 Days — And Then Powered the Features…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@NativeNick/how-claude-code-helped-me-ship-a-production-mobile-app-in-14-days-and-then-powered-the-features-7db8bb37d85c?source=rss-9d0a793af5cb------2"><img src="https://cdn-images-1.medium.com/max/2118/1*2avcYF1jtdLp-dapgVXDHg.png" width="2118"></a></p><p class="medium-feed-snippet">Two layers of Claude, one shipped product. Here&#x2019;s what an agentic workflow actually buys you when you treat it as a force multiplier&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@NativeNick/how-claude-code-helped-me-ship-a-production-mobile-app-in-14-days-and-then-powered-the-features-7db8bb37d85c?source=rss-9d0a793af5cb------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@NativeNick/how-claude-code-helped-me-ship-a-production-mobile-app-in-14-days-and-then-powered-the-features-7db8bb37d85c?source=rss-9d0a793af5cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/7db8bb37d85c</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Native Nick]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 21:06:56 GMT</pubDate>
            <atom:updated>2026-06-19T21:06:56.654Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[NativeScript Event Bubbling (a short story of propagating Tap)]]></title>
            <link>https://medium.com/@NativeNick/nativescript-event-bubbling-a-short-story-of-propagating-tap-f0c1ccec2752?source=rss-9d0a793af5cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0c1ccec2752</guid>
            <category><![CDATA[nativescript]]></category>
            <category><![CDATA[events]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Native Nick]]></dc:creator>
            <pubDate>Wed, 14 Aug 2019 13:04:57 GMT</pubDate>
            <atom:updated>2019-08-14T13:04:57.110Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="NativeScript event propagation" src="https://cdn-images-1.medium.com/max/665/1*fp8UXLWAWI-nQjQ3zN47TQ.png" /></figure><p>One of the occurring challenges for NativeScript developers would be to understand how the gestures event propagation works for Android and iOS. Before NativeScript 5.x.x, the gestures were implemented so that they will respond as they would in their native SDK. That meant that we had two different concepts for iOS and Android. It was confusing, as the same code would behave differently depending on the platform it was running on. Now (NativeScript 5.x.x, 6.x.x and above) the default event propagation is the same for both platforms (Thanks to this PR from @<a href="https://github.com/farfromrefug">farfromrefug</a>) which made things a bit easier.</p><h3>Event Propagation Basics (or how to handle multiple nested Tap events)</h3><p>Let’s assume that we have a structure that contains several levels of nested layouts. Something like :</p><p>a <strong>GridLayout</strong> (the <em>outmost</em> layout) which contains:</p><p>— a <strong>GridLayout </strong>(the <em>middle</em> layout) which contains:</p><p>— — a <strong>GridLayout </strong>(the <em>inner</em> layout) which contains:</p><p>— — — a <strong>Button</strong> (the Button has a bit different behavior which is the reason why it is placed here)</p><p>Now let’s create <strong>tap</strong> handlers for each of the views in our visual tree.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b39b4ecb85305a7dfe58774530487948/href">https://medium.com/media/b39b4ecb85305a7dfe58774530487948/href</a></iframe><p>and the code-behind implementation of the <strong><em>onTap</em></strong> callback</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a444201a85b00dc50714d429d32de967/href">https://medium.com/media/a444201a85b00dc50714d429d32de967/href</a></iframe><p>For a better visual representation of the event propagation, I’ve chosen different colors for each grid and assign the same animation for each view. The full Playground demo can be found <a href="https://play.nativescript.org/?template=play-tsc&amp;id=jsEKIA&amp;v=3"><strong>here</strong></a>. Let’s see what happens:</p><p>We have three nested layouts:</p><ul><li>outmost (orange) layout</li><li>middle (light gray) layout</li><li>inner (blue) layout</li></ul><p>Each of them is using the same <em>onTap</em> (for demonstration purposes) to animate itself. We have three different interaction areas (the orange area, the gray area, and the blue area). Here are the possible interactions:</p><ul><li>Tapping on the orange area (outmost) will call <strong><em>onTap</em></strong> only for the outmost orange layout. Only the orange grid will be animated.</li></ul><pre><strong><em>tap in the orange area</em></strong></pre><pre>&gt;&gt;&gt; onTap invoked from: <strong>GridLayout&lt;outmost&gt;</strong>@home/home-page.xml:6:5;</pre><ul><li>Tapping on the light gray area (middle) will call <strong><em>onTap</em></strong> for the outmost and for the middle areas. The orange and gray grids will be animated.</li></ul><pre><strong><em>tap in the light gray area</em></strong></pre><pre>&gt;&gt;&gt; onTap invoked from: <strong>GridLayout&lt;middle&gt;</strong>@home/home-page.xml:7:9;</pre><pre>&gt;&gt;&gt; onTap invoked from: <strong>GridLayout&lt;outmost&gt;</strong>@home/home-page.xml:6:5;</pre><ul><li>Tapping in the blue area (inner) will call <strong><em>onTap</em></strong> for the outmost, for the middle, and the inner areas. All three grids will be animated.</li></ul><pre><strong><em>tap in the blue area</em></strong></pre><pre>&gt;&gt;&gt; onTap invoked from: <strong>GridLayout&lt;inner&gt;</strong>@home/home-page.xml:8:13;</pre><pre>&gt;&gt;&gt; onTap invoked from: <strong>GridLayout&lt;middle&gt;</strong>@home/home-page.xml:7:9;</pre><pre>&gt;&gt;&gt; onTap invoked from: <strong>GridLayout&lt;outmost&gt;</strong>@home/home-page.xml:6:5;</pre><p>Pretty straight-forward huh?</p><p>What about tapping the <strong>Button</strong>? Well, the thing is that the <strong>Button </strong>in NativeScript is an interactive element that has its custom implementation of the <strong>tap</strong> event. So if you tap on our button, you will notice that no event will be propagated to its parents.</p><pre><strong><em>tap the active button</em></strong></pre><pre>&gt;&gt;&gt; onTap invoked from: <strong>Button&lt;my-button&gt;</strong>@home/home-page.xml:10:17;</pre><h3>Passing gestures through parents</h3><p>Imagine that we want to disable the button interaction on some occasions (e.g., inactive option). In the same time, we want to trigger the taps from the <strong>middle</strong> and <strong>outer</strong> parent layouts if the user taps on the disabled button. But to make things more complicated, we also want to <strong>skip</strong> the tap from the <strong>inner</strong> layout.</p><p>Using <a href="https://play.nativescript.org/?template=play-tsc&amp;id=jsEKIA&amp;v=5"><strong>this modified Playground demo</strong></a><strong> </strong>where the main difference is that we’ve added a disabled button and the inner layout uses the <strong><em>isPassThroughParentEnabled</em></strong> property.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/32f20d79d852b52d14e74601420b96b6/href">https://medium.com/media/32f20d79d852b52d14e74601420b96b6/href</a></iframe><p>What happens above is that the second button is explicitly disabled via <strong><em>isUserInteractionEnabled</em></strong> being set to <strong>false</strong>. The <strong>inner</strong> layout has set <strong><em>isPassThroughParentEnabled</em></strong> to <strong>true </strong>which will in result skip the <strong><em>onTap</em></strong> from being fired when the user taps on the disabled button (or on the inner layout). So tapping on the disable button will animate the outmost (orange) and gray layouts <strong>but will skip</strong> the inner blue layout.</p><pre><strong><em>tap the disabled button (or the blue area)</em></strong></pre><pre>&gt;&gt;&gt; onTap invoked from: GridLayout&lt;outmost&gt;@home/home-page.xml:6:1;</pre><pre>&gt;&gt;&gt; onTap invoked from: GridLayout&lt;middle&gt;@home/home-page.xml:7:2;</pre><p>As a conclusion, NativeScript provides a simple yet powerful API to handle gestures on Android and iOS. The fact that both platforms are using different concepts for events bubbling is an excellent plus for the NativeScript implementation where things are unified. If you want to have an interactive element that will not propagate gestures to its parent use <strong>Button</strong> (e.g., to create a <strong><em>like</em></strong> or <strong><em>favorite</em></strong> buttons that are embedded in a tappable card) or any elements that are not inheriting from the <strong>View</strong> class. If you want to create elaborate gestures logic based on disabling certain elements use <strong><em>isPassThroughParentEnabled</em></strong> property to skip a nested level.</p><p>And that said we have one more scenario…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*J6SDJ0kpPDWDcSxIDe20QA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0c1ccec2752" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Speedy NativeScript Development with HMR]]></title>
            <link>https://medium.com/@NativeNick/speedy-nativescript-development-with-hmr-c5ef188ae2af?source=rss-9d0a793af5cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5ef188ae2af</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[hmr]]></category>
            <category><![CDATA[nativescript-angular]]></category>
            <category><![CDATA[nativescript-vue]]></category>
            <category><![CDATA[nativescript]]></category>
            <dc:creator><![CDATA[Native Nick]]></dc:creator>
            <pubDate>Fri, 29 Mar 2019 09:45:56 GMT</pubDate>
            <atom:updated>2019-03-29T09:45:56.219Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s face it! Mobile development can be time-consuming. You have to test your code against multiple devices with different scaled screens and different APIs and (in the context of <a href="https://docs.nativescript.org/">NativeScript</a>) even on different operating systems. One of the most common things for a mobile developer to do is to apply the code changes simultaneously in real-time on several devices (I often use three emulators + two real devices). NativeScript provides simultaneous livesync on multiple iOS and Android devices/emulators/simulators from some time now, but in this article, I wanted to share how to enable the new and faster HMR <strong>by default</strong> so we could make things more speedy.</p><p><strong>But… What is HMR?</strong></p><p>In short, with NativeScript 5.x.x and above, the development process with <strong>Webpack </strong>was significantly improved by introducing the <strong>Hot Module Replacement</strong> a.k.a. <strong>HMR</strong>. The HMR exchanges, adds or removes modules while an application is running without having to do a full restart of the mobile app (except for some specific cases like when you are modifying native files - see <a href="https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#hot-module-replacement">the detailed comparison chart</a>).</p><p>The typical way to enable HMR experience is to pass the <em>hmr</em> flag to your build command.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ea7358c089fcfb0c203dd442d68aebec/href">https://medium.com/media/ea7358c089fcfb0c203dd442d68aebec/href</a></iframe><p>The command above will build and deploy your tarter application on any connected device, emulator or simulator simultaneously. Notice, that I am not specifying any platform (e.g., Android or iOS) which would mean that if you have iOS and Android connected devices, the app will be deployed on all of them.</p><p><strong>HMR By default</strong></p><p>The next step in speeding the NativeScript developer experience is to enable the HMR by default. As we speak, in the NativeScript road map, enabling the HMR is planned for the upcoming releases. However, the functionality is already here but needs to be explicitly allowed for your project. Here is how to do it:</p><ul><li>Open your root project directory and create the <strong>nsconfig.json</strong> file and add the <strong><em>useLegacyWorkflow </em></strong>boolean key set to <strong><em>false </em></strong>(as done <a href="https://github.com/NickIliev/nativescript-ng-cosmos/blob/master/nsconfig.json">here</a>)</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/76ab4212d34f4209187ce8a85f76beeb/href">https://medium.com/media/76ab4212d34f4209187ce8a85f76beeb/href</a></iframe><p>Now the HMR is enabled by default and all you need to do is to execute the build commands. No flags needed — the Webpack bundling and HMR experience are there by default!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f127671476a143887b9f2673d23c2d3c/href">https://medium.com/media/f127671476a143887b9f2673d23c2d3c/href</a></iframe><p>Each time you press <strong>Save </strong>in your favorite IDE<strong> </strong>the changes will be applied on all of your connected devices and emulators.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*500iSB0pkAWv02nDFUYaaA.gif" /><figcaption>HMR in action</figcaption></figure><p>All that we need now is the meme ending.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*8nL3e_X9HwDOx73l38V-Fg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5ef188ae2af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NativeScript app for file uploads with Firebase Storage]]></title>
            <link>https://medium.com/@NativeNick/nativescript-app-for-file-uploads-with-firebase-storage-fd81a87ed2d3?source=rss-9d0a793af5cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd81a87ed2d3</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[nativescript]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Native Nick]]></dc:creator>
            <pubDate>Thu, 22 Nov 2018 14:23:00 GMT</pubDate>
            <atom:updated>2018-11-22T14:23:00.689Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Requirements:</strong></p><ul><li><a href="https://docs.nativescript.org/start/introduction"><strong>NativeScript 5.x.x</strong> or abov</a>e</li><li><a href="https://console.firebase.google.com/"><strong>Firebase Console </strong>account</a></li><li><a href="https://github.com/EddyVerbruggen/nativescript-plugin-firebase#prerequisites"><strong>Firebase App </strong>with generated files</a>google-services.json<strong> </strong>(Android) and GoogleService-Info.plist (iOS).</li></ul><p><strong>Goal: </strong>Creating a mobile application for Android and iOS that will use <a href="https://firebase.google.com/docs/storage/">Firebase Storage</a> to upload and download images.</p><p>Let’s start with a few quick hints:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1Fd9MptsVUohEsXDwiocQ.jpeg" /></figure><blockquote>NativeScript is a mobile framework used to build cross-platform, native iOS and Android apps.</blockquote><blockquote>Firebase Cloud Storage is built for app developers who need to store and serve user-generated content, such as photos or videos.</blockquote><p>With those out of the way, we can now proceed and create the super-duper image uploading-downloading mobile application. This is a quick walkthrough that assumes that you already have <a href="https://docs.nativescript.org/start/quick-setup">a NativeScript setup</a> and <a href="https://console.firebase.google.com/">Firebase account</a>.</p><p>Let’s get down to business! The first thing we need is a NativeScript project. I am creating a <strong>NativeScript Core project using TypeScript </strong>but feel free to create plain JavaScript, Angular or Vue.js (thou some of the steps might differ a bit).</p><pre>tns create demo --tsc<br>cd demo</pre><p>Add the native platforms (Android and iOS runtimes). Note that to develop an iOS application you will need MacOS or cloud build via <a href="https://www.nativescript.org/nativescript-sidekick">Sidekick</a>.</p><pre>tns platform add android<br>tns platform add ios</pre><p>Then we need the <a href="https://www.npmjs.com/package/nativescript-plugin-firebase">Firebase plugin for NativeScript</a>.</p><pre>npm i nativescript-plugin-firebase --save</pre><p>During the installation, the plugin will prompt a number of questions related to what Firebase functionality you need and want to use in your application.</p><pre>Are you using this plugin ONLY as a Push Notification client for an external (non-Firebase) Push service? (y/n):  (n)<br>Are you using iOS (y/n):  (y) <strong>Y</strong><br>Are you using Android (y/n):  (y) <strong>Y</strong><br>Are you using Firestore? (y/n):  (n) n<br>Are you using Realtime DB? (y/n):  (n) n<br>Are you using Firebase Authentication (pretty likely if you use Firestore or Realtime DB)? (y/n):  (y) n<br>Are you using Firebase RemoteConfig? (y/n):  (n) n<br>Are you using Performance Monitoring? (y/n):  (n) n<br>Are you using Firebase Messaging? (y/n):  (n) n<br>Are you using Firebase Crashlytics? (y/n):  (n) n<br>Are you using Firebase Crash Reporting? (answer &quot;n&quot; if you want to use Crashlytics instead) (y/n):  (n) n<br>Are you using Firebase Storage? (y/n):  (n) <strong>Y</strong><br>Are you using Firebase Cloud Functions? (y/n):  (n) n<br>Are you using Firebase Facebook Authentication? (y/n):  (n) n<br>Are you using Firebase Google Authentication? (y/n):  (n) n<br>Are you using AdMob? (y/n):  (n) n<br>Are you using Firebase Invites? (y/n):  (n) n<br>Are you using Firebase Dynamic Links? (y/n):  (n) n<br>Are you using ML Kit? (y/n):  (n) n</pre><pre>Do you want to save the selected configuration. Reinstalling the dependency will reuse the setup from: firebase.nativescript.json. CI will be easier. (y/n):  (y) <strong>Y</strong></pre><p>After taking the survey, the plugin will install the needed native dependencies and will output a file called <strong>firebase.nativescript.json. </strong>You can use this file to add/remove additional Firebase functionalities at a later stage.</p><p>The next step is to log into Firebase console and take thegoogle-services.json and GoogleService-Info.plist. Place them in your NativeScript’s project as follows:</p><ul><li><strong>Android</strong>:<strong> </strong>Place thegoogle-services.json file in <strong>app/App_Resources/Android/google-services.json</strong></li><li><strong>iOS</strong>: Place thegoogleGoogleService-Info.plist file in <strong>app/App_Resources/iOS/GoogleService-Info.plist</strong></li></ul><p>Now open the app/app.ts file and initialize Firebase while providing your unique application bucket. Each of your Firebase project’s has a unique bucket which can be found the Firebase Console (<strong><em>Project &gt; Develop &gt; Storage</em></strong>) and look something like gs://firebase-storage-demo.appspot.com</p><p>“”</p><p>And here comes the moment of truth! Time to build and deploy our app! Start your emulator (or connect the real device via USB) and “hit the red button”</p><pre>tns run android</pre><pre>// or</pre><pre>tns run os</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*_IkJX83mmpdJdhbwR6GVQg.jpeg" /></figure><p>If you feel like the happy Homer, you can directly skip to the real-life examples on how to use the storage functions. If you are, however, experiencing some build troubles go through <a href="https://github.com/EddyVerbruggen/nativescript-plugin-firebase#known-issues-on-ios">the known issues sections</a>. Apart from the precious information provided there, I would also suggest a few basic steps to recover from an unexpected build problem.</p><ul><li><a href="https://docs.nativescript.org/releases/upgrade-instructions">Update all dependencies to the latest version</a></li><li>For Android Builds make sure that you have installed <strong>Android SDK 28</strong> and <strong>Android Build Tools 28.0.3</strong></li><li>Go through <a href="https://github.com/EddyVerbruggen/nativescript-plugin-firebase">the plugin README</a> f</li><li>or possible changes introduced after this blog was posted</li><li>After the above steps: Remove node_modules, platforms and hooks folders and rebuild the app.</li></ul><h3>Real-Life examples for uploading and downloading files to and from Firebase Storage.</h3><p>With the build process way behind us, the app is now running and we can test the storage capabilities. One <strong>really important thing</strong> to notice is that by default the Firebase Storage has security rules which will prevent unauthorized users from accessing the bucket. For testing purposes, we can disable this rule.</p><ul><li>In the Firebase console open the project and navigate to <strong>Develop &gt; Storage &gt; Rules</strong></li><li>Remove the default rule and place the one we are going to use for our tests</li></ul><p>Use this rules if you want <strong>to grant full read/write access</strong> to your users <strong>or for testing purposes</strong> only.</p><p>With the rule set, we can go back to our NativeScript app and do some actual coding. Using the livesync (meaning, you can apply changes while the app is running with tns run android) we can continue our work. In the examples below I am using <a href="https://github.com/NickIliev/NativeScript-Firebase-Storage">this demo application</a>. The application is using MVVM and all of the methods that follow are part of the <a href="https://github.com/NickIliev/NativeScript-Firebase-Storage/blob/master/demo/app/main-view-model.ts">main-view-model.ts</a> which is used for <a href="https://github.com/NickIliev/NativeScript-Firebase-Storage/blob/master/demo/app/main-page.ts#L9-L10">the binding model in the </a><a href="https://github.com/NickIliev/NativeScript-Firebase-Storage/blob/master/demo/app/main-page.ts#L9-L10">home-page.ts</a>.</p><h4>Upload a File</h4><p>Uploading is as simple as calling the uploadFile method. The method needs the bucket URL, the full remote path where the file will be uploaded (non-existing folders will be automatically created) and, of course, the file itself. You can also track the upload progress via the onProgress event listener.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*I2RiKBrjeNhJTDiqCFB5XA.jpeg" /></figure><h4>Download a File</h4><p>Again nothing mysterious here — using the downloadFile function provided by the nativescript-plugin-firebase. In the method, we are also accessing local directories where we can save the download file.</p><p>The thing that needs a special attention is the way we are accessing the Android Downloads folder (<strong>line 8 </strong>in the above snippet). As we are directly accessing the native Android API via TypeScript, we need TypeScript declarations. To install the typings and receive intelliSense for the native APIs (which is really really awesome!) <a href="https://www.npmjs.com/package/tns-platform-declarations">install the </a><a href="https://www.npmjs.com/package/tns-platform-declarations">tns-platform-declarations.</a></p><p><strong>Get Download URL</strong></p><p><a href="https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/STORAGE.md#getdownloadurl">Easy peasy!</a> Just pass the full remote path and receive back the download URL.</p><h4>Delete a File (from the Firebase Storage)</h4><p>Another trivial job! Just use <a href="https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/STORAGE.md#deletefile">the </a><a href="https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/STORAGE.md#deletefile">deleteFile method</a>, pass the bucket and the full path inside the bucket to the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Kr-p9o0yIT7TWJmExvfoDg.jpeg" /></figure><h4>Conclusion</h4><p>Ok, a disclosure: I am working as a NativeScript TSE so any conclusion from me, might and will be opinionated ;) However, feel free to leave your comments on the framework and about this article.</p><p>And that was about all, folks! If you are interested in the full implementation including the very basic UI that I used as handlebars, please feel free to clone and run <a href="https://github.com/NickIliev/NativeScript-Firebase-Storage">the demo project</a>. Keep in mind, that you will need to change<a href="https://github.com/NickIliev/NativeScript-Firebase-Storage/tree/master/demo/app/App_Resources/Android"> the </a><a href="https://github.com/NickIliev/NativeScript-Firebase-Storage/tree/master/demo/app/App_Resources/Android">google-services.json</a> and <a href="https://github.com/NickIliev/NativeScript-Firebase-Storage/tree/master/demo/app/App_Resources/iOS">the </a><a href="https://github.com/NickIliev/NativeScript-Firebase-Storage/tree/master/demo/app/App_Resources/iOS">GoogleServices-info.plist</a> files with our own so you could actually see the files uploads in your own Firebase bucket.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd81a87ed2d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Local JSON files in NativeScript with TypeScript’s resolveJsonModule]]></title>
            <link>https://medium.com/@NativeNick/local-json-files-in-nativescript-with-typescripts-resolvejsonmodule-3d62673df169?source=rss-9d0a793af5cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d62673df169</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[json]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[nativescript]]></category>
            <dc:creator><![CDATA[Native Nick]]></dc:creator>
            <pubDate>Tue, 20 Nov 2018 12:26:50 GMT</pubDate>
            <atom:updated>2018-11-20T12:26:50.015Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Goal:</strong> Importing local JSON files in a NativeScript application (TypeScript or Angular).</p><p><strong>Read Time:</strong> Approximately 1–2 minutes.</p><p><strong>Requirements:</strong></p><ul><li><a href="https://docs.nativescript.org/start/introduction"><strong>NativeScript 5.x.x</strong> or abov</a>e.</li><li><strong>TypeScript </strong>version <strong>2.9.x</strong> or above.</li><li>Created <strong>NativeScript + TypeScript</strong> or<strong> NativeScript + Angular</strong> project.</li><li>A <strong>JSON file</strong> that we need to import and use.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*GetjRE92bkIvriUhrdcEng.jpeg" /></figure><p>Nope! Not that JSON! We need a one more like <a href="https://github.com/NickIliev/nativescript-resolve-json/blob/master/demo/app/config.json">this one</a>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5e39ff7c8931e0834154bd29732d6469/href">https://medium.com/media/5e39ff7c8931e0834154bd29732d6469/href</a></iframe><p>The topic of this quick walkthrough is to show you an elegant way to handle local JSON files without having to use <a href="https://stackoverflow.com/questions/32414119/get-a-local-json-file-on-nativescript">the file system and JSON.parse</a>. The headaches from using the file system can be avoided with the highly desired option calledresolveJsonModule . The feature was released in <a href="https://docs.nativescript.org/start/introduction">TypeScript 2.9.0</a> and can now be used in NativeScript applications.</p><h3>Enabling JSON imports</h3><p>To import JSON files as TypeScript modules, we need to modify the <strong>tsconfig.json</strong> file in the root project’s directory to contain the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6fc426ffa10db58bfc118bf40676c78b/href">https://medium.com/media/6fc426ffa10db58bfc118bf40676c78b/href</a></iframe><p>With the above, we can now directly import our JSON files</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/61df995e1194ea30ca480f9ba194c7cc/href">https://medium.com/media/61df995e1194ea30ca480f9ba194c7cc/href</a></iframe><p>That’s all! Voila! JSON everywhere! If you need a reference, then use <a href="https://github.com/NickIliev/nativescript-resolve-json">this demo app</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ohRYt6AWGdgfp7Af6a4XMg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d62673df169" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>