Skip to content

Instantly share code, notes, and snippets.

View timdoege's full-sized avatar

Tim Doege timdoege

View GitHub Profile
@shiv19
shiv19 / gradientActionbarIosNativeScript.js
Last active April 17, 2021 09:21
use this code with loaded event of a page to get gradient actionbar on iOS for NativeScript Apps
import { Frame } from '@nativescript/core/ui/frame';
import { Color } from '@nativescript/core/color';
import { isIOS } from '@nativescript/core/platform';
/*
// Legacy require statements if using Vanilla {N}
const Frame = require('@nativescript/core/ui/frame').Frame;
const Color = require('@nativescript/core/color').Color;
const isIOS = require('@nativescript/core/platform').isIOS;
*/