stop layout shifts in feed loading
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user