![]() NOTE: If you don’t already have the NativeScript Playground app installed on your device, go ahead and download it by searching for “NativeScript Playground” in the iOS App Store or Google Play. Next, open the NativeScript Playground app on your iOS or Android device. You’ll see a QR code in your terminal that looks a little something like this. Let’s look at how it works.Įxecute the following command in your terminal or command prompt. In NativeScript you use the CLI’s tns preview command to link the app you’re developing locally to the NativeScript Playground app for your iOS or Android device. Now that you have an app scaffolded on your local computer, you’re ready to run your application on a device. NOTE: To complete this section you must finish the NativeScript CLI quick setup. This option allows you to experience the full developer experience (building and deploying on local emulators and devices). See the quick setup section for details). This option allows you to test NativeScript with a quick setup. Using a preview build via the preview command. Once your NativeScript mobile project is created, you can start the application in two different ways: TIP: You can use the tns help command to view the NativeScript CLI’s help documentation in your web browser. Now that you’ve created an app let’s look at how to get your new app up and running on a device. When the command finishes, use the cd command (change directory) to navigate into your new app’s folder. The create command will take a minute to complete, as the NativeScript CLI needs to download a few dependencies while setting up your new app. To try other templates, run tns create without the -template option the NativeScript CLI will walk you through selecting a template using interactive prompts. tns create HelloWorld -template you’re passing two things to the create command: HelloWorld which determines the name of the app you’re creating, and the -template option, which tells the NativeScript CLI to scaffold an app using a predefined template named You can use the tns create command to scaffold apps at a variety of different starting points. Open your terminal or command prompt and run the following command to create a new NativeScript application. ![]() In this section, you’ll familiarize yourself with the NativeScript CLI, and use the CLI’s create command to start your first NativeScript app. After installation, the NativeScript CLI is available on your terminal or command prompt as a tns command-which is short for Telerik Native Script. In NativeScript you create and run apps using the NativeScript CLI. In this article, you’re going to learn the basics of the NativeScript command-line interface, including how to create new apps, how to get those apps running on devices, and how to set up a development workflow that lets you iterate fast. ![]() Basics of the NativeScript Command-Line Interface
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |