https://leevikopakkala.github.io/Nativescript-Template/
This is the ultimate template with improved structure to help you launch your first app or customer project in no-time.
We all know the slow process of setting up the project and creating functioning base before being able to add features. With this template you get fully functioning application out of the box with Sidedrawer and Tabview.
Perfect for beginners and professionals alike.
Using the best practices, develop your first real mobile application in no-time.
Nativescript Template composed of Nativescript Sidedrawer and Tabview components:
References to individual plugins used in this template:
- https://market.nativescript.org/plugins/tns-template-drawer-navigation-ng
- https://market.nativescript.org/plugins/tns-template-blank-ng
- https://market.nativescript.org/plugins/tns-template-tab-navigation-ng
-
Install Node.JS https://nodejs.org/
-
Install Nativescript CLI
npm install -g nativescript
-
Check that Nativescript CLI is working
tns
-
Install Android Studio (OR iOS equivalent) https://developer.android.com/studio/
- 4.1 Open Android Studio -> AVD Manager -> Create Emulator
- (Optional but useful) Install https://www.nativescript.org/nativescript-sidekick
-
git clone https://github.com/LeeviKopakkala/Nativescript-Template
-
cd Nativescript-Template
-
tns device android --available-devices
ORtns device ios --available-devices
-
tns run android
/tns run android --device {device name}
ORtns run ios
/ `tns run ios --device {device name}
IF USING SIDEKICK
- Open Sidekick
-
4.1 Add Project
-
4.2 Select Emulator
-
4.3 Run
The RadSideDrawer component is set up as an application starting point in:
/app-component.ts
- sets up the side drawer content and defines a page router outlet for the pages.
RadSideDrawer has the following component structure:
RadSideDrawer
- The component to display a drawer on the page.tkDrawerContent
directive - Marks the component that will hold the drawer content.tkMainContent
directive - Marks the component that will hold the app main content.
There are five blank components located in these folders:
/browse
/featured
/home
/search
/settings
This template is set up to use SASS for styling. All classes used are based on the {N} core theme – consult the documentation to understand how to customize it. Check it out to see what classes you can use on which component.
It has 4 global style files that are located at the root of the app folder:
_app-variables.scss
- holds the global SASS variables that are imported on each component's styles._app-common.scss
- the global common style sheet. These style rules are applied to both Android and iOS.app.android.scss
- the global Android style sheet. These style rules are applied to Android only.app.ios.scss
- the global iOS style sheet. These style rules are applied to iOS only.