ai/at
1
0
Files
at/ios/patching/011-social-app-ios-splash-license-footer.patch

60 lines
2.0 KiB
Diff

diff --git a/src/view/com/auth/SplashScreen.tsx b/src/view/com/auth/SplashScreen.tsx
index cc4477696..b5ca66d2f 100644
--- a/src/view/com/auth/SplashScreen.tsx
+++ b/src/view/com/auth/SplashScreen.tsx
@@ -1,6 +1,8 @@
import {useMemo} from 'react'
-import {Image as RNImage, View} from 'react-native'
+import {Image as RNImage, View, Pressable} from 'react-native'
+import {useNavigation} from '@react-navigation/native'
import Animated, {FadeIn, FadeOut} from 'react-native-reanimated'
+import {Text} from '#/components/Typography'
import {Image} from 'expo-image'
import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
@@ -27,6 +29,7 @@ export const SplashScreen = ({
onPressCreateAccount: () => void
}) => {
const t = useTheme()
+ const navigation = useNavigation()
const {_} = useLingui()
const isDarkMode = t.name !== 'light'
@@ -124,6 +127,17 @@ export const SplashScreen = ({
</ButtonText>
</Button>
</View>
+ <View style={[a.pb_sm, a.justify_center, a.align_center]}>
+ <Pressable onPress={() => navigation.navigate('License' as never)}>
+ <Text
+ style={[
+ a.text_xs,
+ {color: '#000000', textDecorationLine: 'underline'},
+ ]}>
+ License
+ </Text>
+ </Pressable>
+ </View>
</Animated.View>
</>
)
diff --git a/src/view/com/auth/SplashScreen.web.tsx b/src/view/com/auth/SplashScreen.web.tsx
index d9185d778..504f521a4 100644
--- a/src/view/com/auth/SplashScreen.web.tsx
+++ b/src/view/com/auth/SplashScreen.web.tsx
@@ -94,14 +94,6 @@ export const SplashScreen = ({
</View>
)}
- <Text
- style={[
- a.text_md,
- a.font_semi_bold,
- t.atoms.text_contrast_medium,
- ]}>
- <Trans>What's up?</Trans>
- </Text>
</View>
<View