mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
setting status bar style
This commit is contained in:
parent
7799064039
commit
801336d05b
@ -310,7 +310,7 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = 9;
|
||||
CURRENT_PROJECT_VERSION = 13;
|
||||
DEVELOPMENT_TEAM = 3P65PQ7SUR;
|
||||
ENABLE_BITCODE = NO;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
@ -348,7 +348,7 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = 9;
|
||||
CURRENT_PROJECT_VERSION = 13;
|
||||
DEVELOPMENT_TEAM = 3P65PQ7SUR;
|
||||
INFOPLIST_FILE = Databag/Info.plist;
|
||||
INFOPLIST_KEY_CFBundleDisplayName = Databag;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { View, TouchableOpacity, Text } from 'react-native';
|
||||
import { View, StatusBar, TouchableOpacity, Text } from 'react-native';
|
||||
import { useState, useEffect, useContext } from 'react';
|
||||
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
|
||||
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
|
||||
@ -379,6 +379,7 @@ export function Session() {
|
||||
<Tab.Screen name="Contacts" component={ContactStackScreen} />
|
||||
</Tab.Navigator>
|
||||
)}
|
||||
<StatusBar barStyle="dark-content" backgroundColor={Colors.background} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
@ -9,8 +9,8 @@ export function useImageAsset(topicId, asset) {
|
||||
frameWidth: 1,
|
||||
frameHeight: 1,
|
||||
imageRatio: 1,
|
||||
imageWidth: 1,
|
||||
imageHeight: 1,
|
||||
imageWidth: 128,
|
||||
imageHeight: 128,
|
||||
url: null,
|
||||
loaded: false,
|
||||
failed: false,
|
||||
@ -24,6 +24,7 @@ export function useImageAsset(topicId, asset) {
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (state.loaded) {
|
||||
const frameRatio = state.frameWidth / state.frameHeight;
|
||||
if (frameRatio > state.imageRatio) {
|
||||
//height constrained
|
||||
@ -37,6 +38,7 @@ export function useImageAsset(topicId, asset) {
|
||||
const height = width / state.imageRatio;
|
||||
updateState({ imageWidth: width, imageHeight: height });
|
||||
}
|
||||
}
|
||||
}, [state.frameWidth, state.frameHeight, state.imageRatio]);
|
||||
|
||||
useEffect(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user