Function isOnboardingCompleted

  • Checks if onboarding has been completed (uses authoritative async storage).

    Returns Promise<boolean>

    Promise resolving to true if onboarding completed, false otherwise.

    export async function isOnboardingCompleted(): Promise<boolean> {
    try {
    const value = await storage.getItemAsync(STORAGE_KEYS.ONBOARDING_COMPLETED);
    return value === "true";
    } catch (error) {
    console.error(
    "[Storage] Error checking onboarding completion status",
    error,
    );
    return false;
    }
    }