mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
create nice structure for the mobile sdk (#1177)
* create nice structure for the mobile sdk * spv * actually dont touch what we dont understand * fix metro * fix pretty * fix types on app and imrpove names * sneek in actually checking the types in the mobile app. * not yet * fix jest imports and name test better
This commit is contained in:
@@ -8,14 +8,15 @@ import { ActivityIndicator, View } from 'react-native';
|
||||
import type { StaticScreenProps } from '@react-navigation/native';
|
||||
import { usePreventRemove } from '@react-navigation/native';
|
||||
|
||||
import {
|
||||
usePrepareDocumentProof,
|
||||
useSelfClient,
|
||||
} from '@selfxyz/mobile-sdk-alpha';
|
||||
import { useSelfClient } from '@selfxyz/mobile-sdk-alpha';
|
||||
import {
|
||||
PassportEvents,
|
||||
ProofEvents,
|
||||
} from '@selfxyz/mobile-sdk-alpha/constants/analytics';
|
||||
import {
|
||||
getPreRegistrationDescription,
|
||||
usePrepareDocumentProof,
|
||||
} from '@selfxyz/mobile-sdk-alpha/onboarding/confirm-identification';
|
||||
|
||||
import successAnimation from '@/assets/animations/loading/success.json';
|
||||
import { PrimaryButton } from '@/components/buttons/PrimaryButton';
|
||||
@@ -109,10 +110,7 @@ const ConfirmBelongingScreen: React.FC<ConfirmBelongingScreenProps> = () => {
|
||||
>
|
||||
<Title textAlign="center">Confirm your identity</Title>
|
||||
<Description textAlign="center" paddingBottom={20}>
|
||||
By continuing, you certify that this passport, biometric ID or
|
||||
Aadhaar card belongs to you and is not stolen or forged. Once
|
||||
registered with Self, this document will be permanently linked to
|
||||
your identity and can't be linked to another one.
|
||||
{getPreRegistrationDescription()}
|
||||
</Description>
|
||||
<PrimaryButton
|
||||
trackEvent={PassportEvents.OWNERSHIP_CONFIRMED}
|
||||
|
||||
@@ -20,6 +20,7 @@ import failAnimation from '@/assets/animations/loading/fail.json';
|
||||
import proveLoadingAnimation from '@/assets/animations/loading/prove.json';
|
||||
import CloseWarningIcon from '@/images/icons/close-warning.svg';
|
||||
import { loadPassportDataAndSecret } from '@/providers/passportDataProvider';
|
||||
import { useSettingStore } from '@/stores/settingStore';
|
||||
import { black, slate400, white, zinc500, zinc900 } from '@/utils/colors';
|
||||
import { extraYPadding } from '@/utils/constants';
|
||||
import { advercase, dinot } from '@/utils/fonts';
|
||||
@@ -60,7 +61,7 @@ const LoadingScreen: React.FC<LoadingScreenProps> = ({}) => {
|
||||
|
||||
// Get current state from proving machine, default to 'idle' if undefined
|
||||
const currentState = useProvingStore(state => state.currentState) ?? 'idle';
|
||||
const fcmToken = useProvingStore(state => state.fcmToken);
|
||||
const fcmToken = useSettingStore(state => state.fcmToken);
|
||||
const isFocused = useIsFocused();
|
||||
const { bottom } = useSafeAreaInsets();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user