Skip to content

Commit 60638ca

Browse files
author
tfomkin
committed
fix: android padding fixes
1 parent a5d1ba2 commit 60638ca

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/mobile/app/(main)/chat/list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function ChatListScreen(): ReactElement {
4545

4646
return (
4747
<ScreenWrapper safeAreaProps={{ edges: [] }} screenProps={{ noOutsideSpacing: true, scrollDisabled: true }}>
48-
<View className='flex-1 bg-background-primary mt-safe'>
48+
<View className='flex-1 bg-background-primary ios:mt-safe'>
4949
<AppHeader
5050
className='mt-0'
5151
title={translate('TEXT_CHATS')}

libs/mobile/shared/ui/ui-kit/src/bottom-sheet/component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
useState,
2323
} from 'react';
2424

25-
import { Keyboard, Platform, TouchableWithoutFeedback, ViewProps, StyleSheet } from 'react-native';
25+
import { Keyboard, TouchableWithoutFeedback, ViewProps, StyleSheet } from 'react-native';
2626
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
2727
import { useSafeAreaInsets } from 'react-native-safe-area-context';
2828
import { SetOptional } from 'type-fest';
@@ -133,7 +133,7 @@ export function AppBottomSheet({
133133
) : (
134134
<BottomSheetView>
135135
<View
136-
className={cn('px-content-offset pt-content-offset', Platform.OS === 'ios' ? 'pb-safe' : 'pb-16')}
136+
className='px-content-offset pt-content-offset pb-safe android:pb-16'
137137
style={keyboardShown && !withoutKeyboardExtraPadding ? { paddingBottom: keyboardHeight } : undefined}>
138138
{content}
139139
</View>

0 commit comments

Comments
 (0)