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