stop layout shifts in feed loading

This commit is contained in:
Samuel Newman
2025-06-27 10:51:01 +03:00
parent 40a6b56506
commit 3dde539a1a
+4 -4
View File
@@ -1,10 +1,10 @@
import {useMemo} from 'react' import {useMemo} from 'react'
import { import {
DimensionValue, type DimensionValue,
StyleProp, type StyleProp,
StyleSheet, StyleSheet,
View, View,
ViewStyle, type ViewStyle,
} from 'react-native' } from 'react-native'
import {usePalette} from '#/lib/hooks/usePalette' import {usePalette} from '#/lib/hooks/usePalette'
@@ -234,7 +234,7 @@ export function FeedLoadingPlaceholder({
style={[ style={[
{ {
paddingHorizontal: 12, paddingHorizontal: 12,
paddingVertical: 18, paddingVertical: 20,
borderTopWidth: showTopBorder ? StyleSheet.hairlineWidth : 0, borderTopWidth: showTopBorder ? StyleSheet.hairlineWidth : 0,
}, },
pal.border, pal.border,