66 lines
2.4 KiB
Diff
66 lines
2.4 KiB
Diff
--- 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 (
|
|
- <Svg
|
|
- fill="none"
|
|
- // @ts-ignore it's fiiiiine
|
|
+ <Image
|
|
+ // @ts-ignore
|
|
ref={ref}
|
|
- viewBox="0 0 64 66"
|
|
- style={[{width, height}, props.style]}>
|
|
- <Path
|
|
- fill={props.fill || '#fff'}
|
|
- d="M13.873 3.77C21.21 9.243 29.103 20.342 32 26.3v15.732c0-.335-.13.043-.41.858-1.512 4.414-7.418 21.642-20.923 7.87-7.111-7.252-3.819-14.503 9.125-16.692-7.405 1.252-15.73-.817-18.014-8.93C1.12 22.804 0 8.431 0 6.488 0-3.237 8.579-.18 13.873 3.77ZM50.127 3.77C42.79 9.243 34.897 20.342 32 26.3v15.732c0-.335.13.043.41.858 1.512 4.414 7.418 21.642 20.923 7.87 7.111-7.252 3.819-14.503-9.125-16.692 7.405 1.252 15.73-.817 18.014-8.93C62.88 22.804 64 8.431 64 6.488 64-3.237 55.422-.18 50.127 3.77Z"
|
|
- />
|
|
- </Svg>
|
|
+ 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 @@
|
|
<ExpoImage
|
|
testID="userAvatarImage"
|
|
style={aviStyle}
|
|
- source={{uri: avatar}}
|
|
+ source={{ uri: hackModifyThumbnailPath(avatar, 1 > 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({
|