mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
when on dev add secret shortcuts (#109)
Co-authored-by: Leszek Stachowski <leszek.stachowski@clabs.co>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user