--- a/src/Splash.tsx +++ b/src/Splash.tsx @@ -15,8 +15,8 @@ withTiming, } from 'react-native-reanimated' import {useSafeAreaInsets} from 'react-native-safe-area-context' -import Svg, {Path, type SvgProps} from 'react-native-svg' import {Image} from 'expo-image' +import {type SvgProps} from 'react-native-svg' import * as SplashScreen from 'expo-splash-screen' import {Logotype} from '#/view/icons/Logotype' @@ -29,21 +29,18 @@ darkSplashImagePointer, ).uri -export const Logo = forwardRef(function LogoImpl(props: SvgProps, ref) { - const width = 1000 - const height = width * (67 / 64) +export const Logo = forwardRef(function LogoImpl(props: SvgProps & {fill?: string}, ref) { + const size = 1000 + // @ts-ignore return ( - - - + source={require('../assets/logo.png')} + style={[{width: size, height: size}, props.style]} + contentFit="contain" + accessibilityLabel="Logo" + /> ) }) --- a/src/view/com/util/UserAvatar.tsx +++ b/src/view/com/util/UserAvatar.tsx @@ -446,7 +446,7 @@ 0), }} accessibilityRole="image" /> ) : ( @@ -617,7 +617,8 @@ // manually string-replace to use the smaller ones // -prf function hackModifyThumbnailPath(uri: string, isEnabled: boolean): string { - return isEnabled ? convertCdnPreset(uri, 'avatar_thumbnail') : uri + // syu.is: avatars are served directly from bsky.syu.is, no CDN transformation needed + return uri } const styles = StyleSheet.create({