From 0299b6b3fe0909e5d3ac16debdbe958e19e13ed4 Mon Sep 17 00:00:00 2001 From: RAZINJ <37253974+razinj@users.noreply.github.com> Date: Fri, 28 Oct 2022 23:53:38 +0100 Subject: [PATCH] Fix status bar missing height (#9) * Fix missing status bar height * 1.4.5 --- android/app/build.gradle | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- src/Home.tsx | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 2c27464..952a27f 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -138,8 +138,8 @@ android { applicationId "com.razinj.context_launcher" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 8 - versionName "1.4.4" + versionCode 9 + versionName "1.4.5" archivesBaseName = "context-launcher-v$versionName-$versionCode" buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() diff --git a/package-lock.json b/package-lock.json index 92965cc..ec8e0d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "context_launcher", - "version": "1.4.4", + "version": "1.4.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "context_launcher", - "version": "1.4.4", + "version": "1.4.5", "dependencies": { "@gorhom/bottom-sheet": "^4.4.3", "@react-native-async-storage/async-storage": "^1.17.10", diff --git a/package.json b/package.json index 92b5343..6cd605a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "context_launcher", - "version": "1.4.4", + "version": "1.4.5", "private": true, "scripts": { "android": "react-native run-android", diff --git a/src/Home.tsx b/src/Home.tsx index b9b8771..4e38762 100644 --- a/src/Home.tsx +++ b/src/Home.tsx @@ -1,7 +1,7 @@ // React import React, { useContext, useEffect, useState } from 'react' // React Native -import { View, StyleSheet } from 'react-native' +import { View, StyleSheet, StatusBar } from 'react-native' // Redux import { useDispatch } from 'react-redux' import { setAppsList } from './slices/appsList' @@ -67,6 +67,7 @@ const styles = StyleSheet.create({ wrapper: { flex: 1, padding: 5, + marginTop: StatusBar.currentHeight, justifyContent: 'flex-end', }, })