APP-2974: Avoid composer layout animations

This commit is contained in:
Eric Bailey
2026-08-31 18:59:12 -05:00
parent c634d9b1be
commit 7f9d89af10
+3 -10
View File
@@ -29,7 +29,6 @@ import Animated, {
FadeOut, FadeOut,
interpolateColor, interpolateColor,
LayoutAnimationConfig, LayoutAnimationConfig,
LinearTransition,
scrollTo, scrollTo,
useAnimatedRef, useAnimatedRef,
useAnimatedScrollHandler, useAnimatedScrollHandler,
@@ -1461,7 +1460,6 @@ export const ComposePost = ({
<Animated.ScrollView <Animated.ScrollView
ref={scrollViewRef} ref={scrollViewRef}
layout={native(LinearTransition)}
onScroll={scrollHandler} onScroll={scrollHandler}
contentContainerStyle={a.flex_grow} contentContainerStyle={a.flex_grow}
style={[ style={[
@@ -1825,9 +1823,7 @@ function ComposerTopBar({
const {t: l} = useLingui() const {t: l} = useLingui()
return ( return (
<Animated.View <Animated.View style={topBarAnimatedStyle}>
style={topBarAnimatedStyle}
layout={native(LinearTransition)}>
<View <View
style={[ style={[
a.flex_row, a.flex_row,
@@ -2600,10 +2596,7 @@ function ErrorBanner({
if (!error) return null if (!error) return null
return ( return (
<Animated.View <View style={[a.px_lg, a.pb_sm]}>
style={[a.px_lg, a.pb_sm]}
entering={FadeIn}
exiting={FadeOut}>
<View <View
style={[ style={[
a.px_md, a.px_md,
@@ -2641,7 +2634,7 @@ function ErrorBanner({
</Text> </Text>
)} )}
</View> </View>
</Animated.View> </View>
) )
} }