Revert "APP-2974: Avoid composer layout animations"
This reverts commit 2e08b90837.
This commit is contained in:
@@ -29,6 +29,7 @@ import Animated, {
|
||||
FadeOut,
|
||||
interpolateColor,
|
||||
LayoutAnimationConfig,
|
||||
LinearTransition,
|
||||
scrollTo,
|
||||
useAnimatedRef,
|
||||
useAnimatedScrollHandler,
|
||||
@@ -1460,6 +1461,7 @@ export const ComposePost = ({
|
||||
|
||||
<Animated.ScrollView
|
||||
ref={scrollViewRef}
|
||||
layout={native(LinearTransition)}
|
||||
onScroll={scrollHandler}
|
||||
contentContainerStyle={a.flex_grow}
|
||||
style={[
|
||||
@@ -1823,7 +1825,9 @@ function ComposerTopBar({
|
||||
const {t: l} = useLingui()
|
||||
|
||||
return (
|
||||
<Animated.View style={topBarAnimatedStyle}>
|
||||
<Animated.View
|
||||
style={topBarAnimatedStyle}
|
||||
layout={native(LinearTransition)}>
|
||||
<View
|
||||
style={[
|
||||
a.flex_row,
|
||||
@@ -2596,7 +2600,10 @@ function ErrorBanner({
|
||||
if (!error) return null
|
||||
|
||||
return (
|
||||
<View style={[a.px_lg, a.pb_sm]}>
|
||||
<Animated.View
|
||||
style={[a.px_lg, a.pb_sm]}
|
||||
entering={FadeIn}
|
||||
exiting={FadeOut}>
|
||||
<View
|
||||
style={[
|
||||
a.px_md,
|
||||
@@ -2634,7 +2641,7 @@ function ErrorBanner({
|
||||
</Text>
|
||||
)}
|
||||
</View>
|
||||
</View>
|
||||
</Animated.View>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user