From 759c369c933141b2eb87292f2b1b1f5725df84d1 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Sun, 19 Apr 2020 15:03:40 +0200 Subject: [PATCH] Fixed crash on iOS --- src/utils/withCollapsible.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/withCollapsible.js b/src/utils/withCollapsible.js index 881c09f..fe8978c 100644 --- a/src/utils/withCollapsible.js +++ b/src/utils/withCollapsible.js @@ -14,12 +14,13 @@ export const withCollapsible = (Component: any) => { progress, opacity, } = useCollapsibleStack(); + const statusbarHeight = StatusBar.currentHeight != null ? StatusBar.currentHeight : 0; return