when on dev add secret shortcuts (#109)

Co-authored-by: Leszek Stachowski <leszek.stachowski@clabs.co>
This commit is contained in:
Aaron DeRuvo
2025-02-14 14:27:38 +01:00
committed by GitHub
parent 58eb4306f7
commit 7e70b6ffbc

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { StyleSheet, TouchableWithoutFeedback, View } from 'react-native';
import { Anchor, Text, XStack, YStack } from 'tamagui';
@@ -18,7 +18,8 @@ interface LaunchScreenProps {}
const LaunchScreen: React.FC<LaunchScreenProps> = ({}) => {
const onStartPress = useHapticNavigation('PassportOnboarding');
const skipToHome = useHapticNavigation('Home');
const createMock = useHapticNavigation('CreateMock');
return (
<ExpandableBottomLayout.Layout backgroundColor={black}>
<ExpandableBottomLayout.TopSection backgroundColor={black}>
@@ -28,9 +29,13 @@ const LaunchScreen: React.FC<LaunchScreenProps> = ({}) => {
paddingVertical="$2"
gap="$4"
>
<View style={styles.cardContainer}>
<GetStartedCard style={styles.card} />
</View>
<TouchableWithoutFeedback
onPress={() => (__DEV__ ? createMock() : null)}
>
<View style={styles.cardContainer}>
<GetStartedCard style={styles.card} />
</View>
</TouchableWithoutFeedback>
<YStack flex={1} justifyContent="flex-end">
<XStack
marginBottom="$10"
@@ -39,7 +44,12 @@ const LaunchScreen: React.FC<LaunchScreenProps> = ({}) => {
gap="$4"
>
<Logo style={styles.logo} />
<Text style={styles.selfText}>Self</Text>
<Text
onPress={() => (__DEV__ ? skipToHome() : null)}
style={styles.selfText}
>
Self
</Text>
</XStack>
</YStack>
</YStack>