All Projects → williamjuan027 → nativescript-rootlayout-demo

williamjuan027 / nativescript-rootlayout-demo

Licence: other
🤹 Demo for Nativescript 8's RootLayout Component

Programming Languages

typescript
32286 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to nativescript-rootlayout-demo

nativescript-auth0
Nativescript Auth0 https://auth0.com/ social authentication plugin
Stars: ✭ 57 (+235.29%)
Mutual labels:  nativescript
nativescript-calendar
📅 NativeScript plugin to Create, Delete and Find Events in the native Calendar
Stars: ✭ 44 (+158.82%)
Mutual labels:  nativescript
nativescript-homekit
🏡 HomeKit plugin for your fancy NativeScript app
Stars: ✭ 23 (+35.29%)
Mutual labels:  nativescript
nativesapp
Simple WhatsApp clone just for training purposes - Course Angular Native at www.udemy.com/angular-native
Stars: ✭ 19 (+11.76%)
Mutual labels:  nativescript
nativescript-swipe-card
Swipe Card plugin for nativescript
Stars: ✭ 21 (+23.53%)
Mutual labels:  nativescript
nativescript-vue-router
A simple router implementation that is suitable for NativeScript-Vue.
Stars: ✭ 14 (-17.65%)
Mutual labels:  nativescript
insomnia
😪 NativeScript plugin to keep the device awake (not dim the screen, lock, etc)
Stars: ✭ 40 (+135.29%)
Mutual labels:  nativescript
nativescript-pedometer
🐾 step count tracking plugin for your NativeScript app
Stars: ✭ 17 (+0%)
Mutual labels:  nativescript
nativescript-http
The best way to do HTTP requests in NativeScript, a drop-in replacement for the core HTTP with important improvements and additions like proper connection pooling, form data support and certificate pinning
Stars: ✭ 32 (+88.24%)
Mutual labels:  nativescript
nativescript-wear-os
Consolidated repo for WearOS with NativeScript
Stars: ✭ 27 (+58.82%)
Mutual labels:  nativescript
nativescript-react
Build native application using React and Nativescript.
Stars: ✭ 14 (-17.65%)
Mutual labels:  nativescript
lazyNinjas
No description or website provided.
Stars: ✭ 25 (+47.06%)
Mutual labels:  nativescript
nativescript-printer
📠 Send an image or the screen contents to a physical printer
Stars: ✭ 33 (+94.12%)
Mutual labels:  nativescript
nativescript-fabric
Handling App URLs in nativescript apps
Stars: ✭ 29 (+70.59%)
Mutual labels:  nativescript
nativescript-task-app
An example task management NativeScript Angular app. Demonstrates ngrx effects, lazy-loading modules, offline storage and app branding.
Stars: ✭ 26 (+52.94%)
Mutual labels:  nativescript
nativescript-app-shortcuts
👇 Home Icon Actions for your NativeScript app, now also for Android!
Stars: ✭ 45 (+164.71%)
Mutual labels:  nativescript
nativescript-performance-monitor
⚡ Proof your app maintains 60-ish FPS by collecting data or showing it on screen with this NativeScript plugin!
Stars: ✭ 21 (+23.53%)
Mutual labels:  nativescript
ngxp-quotes-app
Cross Platform Quotes Application built with Angular and Nativescript.
Stars: ✭ 26 (+52.94%)
Mutual labels:  nativescript
nativescript-android-tv
A little PoC demonstrating code sharing between Android Phone and TV apps
Stars: ✭ 26 (+52.94%)
Mutual labels:  nativescript
nativescript-vue-multi-drawer
A NativeScript-Vue component for creating multiple side drawers (4 sides supported)
Stars: ✭ 45 (+164.71%)
Mutual labels:  nativescript

RootLayout Demo

🤹 Demo for Nativescript 8's RootLayout Component

Sample iOS

Development

This app is built with the NativeScript CLI. Once you have the CLI installed, start by cloning the repo:

git clone https://github.com/williamjuan027/nativescript-rootlayout-demo.git

cd nativescript-rootlayout-demo/demo-ng

Install the project's dependencies

npm install

You can then run the app on iOS and Android using the following commands:

ns run ios

ns run android

This app uses the new RootLayout component from Nativescript 8, make sure that the NativeScript 8 is installed prior to running the app

npm install -g nativescript

How to Use RootLayout

RootLayout is meant to be used as the outermost container for your app. In Angular, this refers to the layout in your app.component.html which contains your page-router-outlet and other UI elements.

<!-- app.component.html -->
<RootLayout>
  <page-router-outlet></page-router-outlet>
</RootLayout>

RootLayout related functionalities are handled in ui.service.ts

RootLayout Methods

getRootLayout() returns the RootLayout instance which has the following methods:

Method Description
open(view: View, options?: RootLayoutOptions): Promise Opens the target view
close(view: View, exitTo?: TransitionAnimation): Promise Closes the target view
bringToFront(view: View, animated?: boolean): Promise Moves the target view to the front (highest z-index)
getShadeCover(): View Returns the shade cover instance
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].