NativeScript / ios-ng2-tns

Extending and existing iOS app with Angular and Nativescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extend your existing iOS app with Angular and NativeScript

Step-by-step instructions how to extend existing iOS app with Angular and NativeScript

1.Build your NativeScript app for iOS: tns build ios

2.Copy your NativeScript app \platforms\ios\YourAppName\app folder to your iOS app:

Copy your NativeScript

3.Copy your NativeScript app \platforms\ios\internal folder next to your iOS app:

Copy your NativeScript

Note: Both can be found in your NativeScript app \platforms\ios\and \lib\ios\ folders.

4.Add reference to NativeScript.framework and TNSWidgets.framework (the former should be in the internal folder)

Copy your NativeScript

Note: Both can be found in your NativeScript app \platforms\ios\ and \lib\ios\ folders.

5.Add Run Script and Linker Flags to build and use the metadata:

Copy your NativeScript

cd "$PROJECT_DIR/internal/metadata-generator/bin" && ./build-step-metadata-generator.py

Copy your NativeScript

-sectcreate __DATA __TNSMetadata "$(CONFIGURATION_BUILD_DIR)/metadata-$(CURRENT_ARCH).bin"

Note: Run Script should be the first build phase.

6.Present NativeScript view controller from your app:

Copy your NativeScript

Copy your NativeScript

Credits

Extend your existing iOS app with Angular 2 and NativeScript

About

Extending and existing iOS app with Angular and Nativescript


Languages

Language:JavaScript 49.4%Language:C 26.7%Language:C++ 15.7%Language:TypeScript 6.9%Language:HTML 0.8%Language:CSS 0.3%Language:Objective-C 0.2%Language:Python 0.0%Language:Shell 0.0%Language:Batchfile 0.0%