Skip to content

Commit a3899ea

Browse files
committed
update launch screen link, copy and add tracking event
1 parent b5da9b8 commit a3899ea

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

app/src/consts/analytics.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
export const AppEvents = {
44
DISMISS_PRIVACY_DISCLAIMER: 'App: Dismiss Privacy Disclaimer',
55
GET_STARTED: 'App: Get Started',
6+
SUPPORTED_BIOMETRIC_IDS: 'App: Supported Biometric IDs',
67
UPDATE_MODAL_CLOSED: 'App: Update Modal Closed',
78
UPDATE_MODAL_OPENED: 'App: Update Modal Opened',
89
UPDATE_STARTED: 'App: Update Started',

app/src/consts/links.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export const termsUrl = 'https://self.xyz/terms';
66

77
export const privacyUrl = 'https://self.xyz/privacy';
88

9+
export const supportedBiometricIdsUrl = 'https://self.xyz/supported-ids';
10+
911
export const telegramUrl = 'https://t.me/self_xyz';
1012

1113
export const gitHubUrl = 'https://github.com/selfxyz/self';

app/src/screens/misc/LaunchScreen.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: BUSL-1.1; Copyright (c) 2025 Social Connect Labs, Inc.; Licensed under BUSL-1.1 (see LICENSE); Apache-2.0 from 2029-06-11
22

33
import React from 'react';
4-
import { StyleSheet, View } from 'react-native';
4+
import { Linking, StyleSheet, View } from 'react-native';
55
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
66
import { useSafeAreaInsets } from 'react-native-safe-area-context';
77
import { Anchor, Text, YStack } from 'tamagui';
@@ -10,7 +10,11 @@ import AbstractButton from '../../components/buttons/AbstractButton';
1010
import { BodyText } from '../../components/typography/BodyText';
1111
import { Caption } from '../../components/typography/Caption';
1212
import { AppEvents } from '../../consts/analytics';
13-
import { privacyUrl, termsUrl } from '../../consts/links';
13+
import {
14+
privacyUrl,
15+
supportedBiometricIdsUrl,
16+
termsUrl,
17+
} from '../../consts/links';
1418
import useConnectionModal from '../../hooks/useConnectionModal';
1519
import useHapticNavigation from '../../hooks/useHapticNavigation';
1620
import Logo from '../../images/logo.svg';
@@ -64,10 +68,12 @@ const LaunchScreen: React.FC<LaunchScreenProps> = ({}) => {
6468
borderColor={zinc800}
6569
color={white}
6670
borderWidth={1}
67-
// TODO: add onPress event
68-
onPress={() => {}}
71+
trackEvent={AppEvents.SUPPORTED_BIOMETRIC_IDS}
72+
onPress={() => {
73+
Linking.openURL(supportedBiometricIdsUrl);
74+
}}
6975
>
70-
List of supported Biometric IDs
76+
List of Supported Biometric IDs
7177
</AbstractButton>
7278

7379
<AbstractButton
@@ -76,7 +82,7 @@ const LaunchScreen: React.FC<LaunchScreenProps> = ({}) => {
7682
bgColor={white}
7783
color={black}
7884
>
79-
I have a passport or Biometric ID
85+
I have a Passport or Biometric ID
8086
</AbstractButton>
8187
</YStack>
8288

0 commit comments

Comments
 (0)