Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Embedding NativeScript in an Existing iOS App

DZone's Guide to

Embedding NativeScript in an Existing iOS App

If you're wondering how to embed NativeScript in an existing app, check out this step-by-step tutorial! (Don't worry, there's a link for Android, too.)

· Mobile Zone ·
Free Resource

These days, the concept of a greenfield project is pretty foreign to most of us. We are maintaining legacy web and mobile apps, and new development is often left to our free time. This can make adoption of new frameworks more difficult, because we simply don't have the opportunity to leverage new technology with old projects.

Take NativeScript for instance. What better way to develop a native, cross-platform, mobile app than to use the web skills you have been honing for years? Well, many of us are dealing with traditional (Objective-C, Swift, Java) apps and don't have the option of using NativeScript for app development. Until now, that is.

We've recently updated the NativeScript docs and introduced a new article with step-by-step instructions on embedding NativeScript in an existing iOS app!

If you're curious about embedding NativeScript in an Android app, view our Android integration docs.

Requirements

Before you dive into this, you should know that we do have a couple basic requirements for you:

  • You'll need a Mac with Xcode 9+ installed;
  • You'll also need the NativeScript CLI installed and configured with Cocoapod support.

Our step-by-step instructions include two demo apps pre-configured for this scenario. CoolApp is an Xcode project (your native iOS app) and nsapp is a basic NativeScript app.

Enough talk: read the article and try it for yourself!

⚠️alert!⚠️

While the instructions are clearly documented, this process is not for the faint of heart! ��

This integration is still very new and in an experimental state. Feel free to report any issues you find in the appropriate GitHub repository.

Topics:
mobile ,mobile app development ,cross platform ,nativescript ,ios ,tutorial

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}