APP-2974: Avoid composer layout animations
This commit is contained in:
@@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user