diff options
author | Hailey <me@haileyok.com> | 2024-09-26 20:52:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-27 12:52:32 +0900 |
commit | 389e6f15090ed35843f92253a299906df27cf993 (patch) | |
tree | 80895f6cffffcb29441af29926a227851a3db4a2 /src/screens/Signup/StepInfo/index.tsx | |
parent | dd1944e9b83da248fb50cdd1c10ca18b6c345b87 (diff) | |
download | voidsky-389e6f15090ed35843f92253a299906df27cf993.tar.zst |
Lazy load ViewShot (#5517)
* lazy one spot * lazy signup * fix type * tweak type, fix missing viewshot type * only import type oops
Diffstat (limited to 'src/screens/Signup/StepInfo/index.tsx')
-rw-r--r-- | src/screens/Signup/StepInfo/index.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/screens/Signup/StepInfo/index.tsx b/src/screens/Signup/StepInfo/index.tsx index 2cdb4b722..d9b680602 100644 --- a/src/screens/Signup/StepInfo/index.tsx +++ b/src/screens/Signup/StepInfo/index.tsx @@ -6,8 +6,8 @@ import * as EmailValidator from 'email-validator' import type tldts from 'tldts' import {logEvent} from '#/lib/statsig/statsig' +import {isEmailMaybeInvalid} from '#/lib/strings/email' import {logger} from '#/logger' -import {isEmailMaybeInvalid} from 'lib/strings/email' import {ScreenTransition} from '#/screens/Login/ScreenTransition' import {is13, is18, useSignupContext} from '#/screens/Signup/state' import {Policies} from '#/screens/Signup/StepInfo/Policies' @@ -59,6 +59,9 @@ export function StepInfo({ import('tldts/dist/index.cjs.min.js').then(tldts => { tldtsRef.current = tldts }) + // This will get used in the avatar creator a few steps later, so lets preload it now + // @ts-expect-error - valid path + import('react-native-view-shot/src/index') }, []) const onNextPress = () => { |