Skip to content

Commit 4b39473

Browse files
committed
feat(snack): top bar height
1 parent 891583d commit 4b39473

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

content/snacks/index.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,29 @@ Each Snack reveals NativeScript's power, from UI tricks to platform SDK usages t
270270
videoUrl: "https://youtube.com/embed/1DR_9AZrMe4",
271271
videoTitle: "Adjusting hardware device volume with NativeScript",
272272
},
273+
{
274+
id: 18,
275+
title: "Top Bar Height",
276+
href: "https://stackblitz.com/edit/nativescript-topbar-height?file=src%2Fapp%2Futils%2Fdevice.ts",
277+
description: "How to check the top bar height with NativeScript on iOS and Android.",
278+
categories: [
279+
{
280+
title: "iOS statusBarManager",
281+
href: "https://developer.apple.com/documentation/uikit/uiwindowscene/3213943-statusbarmanager?language=objc",
282+
},
283+
{
284+
title: "iOS UINavigationBar",
285+
href: "https://developer.apple.com/documentation/uikit/uinavigationbar?language=objc",
286+
},
287+
{
288+
title: "Android Resources",
289+
href: "https://developer.android.com/guide/topics/resources/providing-resources",
290+
},
291+
{ title: "Android bar height id", href: "https://android.googlesource.com/platform/frameworks/base/+/master/core/res/res/values/dimens_material.xml#39" },
292+
],
293+
videoUrl: "https://www.youtube.com/watch?v=bXSyBTGJIlc",
294+
videoTitle: "Top Bar Height with NativeScript",
295+
},
273296
// Not ready yet but will discuss with Dylan to update
274297
// {
275298
// id: 15,

0 commit comments

Comments
 (0)