We have already used TypeScript to build web apps and a server. TypeScript can also be used to create mobile apps. In this chapter, we will build such an app. The app can scan QR codes. The app shows a list of all previous scans. If a QR code contains a URL, the app can open that URL in a web browser. Various frameworks exist for making mobile apps in TypeScript. We will use NativeScript, which provides a native user interface and runs on Android and iOS, as shown in the following:
We will create this app with the following steps:
Creating the project structure
Creating a Hello World page
Creating the main view
Adding a details view
Scanning QR codes
Adding persistent storage
Styling the app
Comparing NativeScript to alternatives