diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-11-19 12:50:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-19 12:50:06 +0000 |
commit | ea3fe93be972cd2c7b56acd17278d0c223e4f562 (patch) | |
tree | 88e37803bb65547470acfbc82c2444e6cfdf81fa /src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx | |
parent | 9a57d2a538e4acf112069aa3b6ba37d615ede758 (diff) | |
download | voidsky-ea3fe93be972cd2c7b56acd17278d0c223e4f562.tar.zst |
Attempted video perf improvements (#6519)
* remove layout animations from video * only show button/spinner when necessary * use native activityindicator rather than loader
Diffstat (limited to 'src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx')
-rw-r--r-- | src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx index 21db54322..215e4c406 100644 --- a/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx +++ b/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx @@ -1,6 +1,5 @@ import React, {useRef} from 'react' import {Pressable, StyleProp, View, ViewStyle} from 'react-native' -import Animated, {FadeInDown} from 'react-native-reanimated' import {AppBskyEmbedVideo} from '@atproto/api' import {BlueskyVideoView} from '@haileyok/bluesky-video' import {msg} from '@lingui/macro' @@ -182,8 +181,7 @@ function ControlButton({ style?: StyleProp<ViewStyle> }) { return ( - <Animated.View - entering={FadeInDown.duration(300)} + <View style={[ a.absolute, a.rounded_full, @@ -207,6 +205,6 @@ function ControlButton({ hitSlop={HITSLOP_30}> {children} </Pressable> - </Animated.View> + </View> ) } |