mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 14:48:06 -05:00
* setup IS_EUCLID build variable for conditionally using euclid desgins create a headless header that only handles the status bar, for the new screens since they manage their own make sure new screens get proper insets add recoveryphrase 3.0 fix country picker * this lint runs twice. once in repo wide lint and once here. so lets just run once to save resources Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
17 lines
622 B
TypeScript
17 lines
622 B
TypeScript
// SPDX-FileCopyrightText: 2025 Social Connect Labs, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
// NOTE: Converts to Apache-2.0 on 2029-06-11 per LICENSE.
|
|
|
|
import { Platform } from 'react-native';
|
|
import { useSafeAreaInsets as useSafeAreaInsetsOriginal } from 'react-native-safe-area-context';
|
|
|
|
// gives bare minimums in case safe area doesnt provide for example space for status bar icons.
|
|
export function useSafeAreaInsets() {
|
|
const insets = useSafeAreaInsetsOriginal();
|
|
const minimum = Platform.select({ ios: 54, android: 26, web: 48 });
|
|
return {
|
|
...insets,
|
|
top: Math.max(insets.top, minimum || 0),
|
|
};
|
|
}
|