fix: resolve Expo SDK 54 compatibility issues and React 19 JSX runtime errors
This commit is contained in:
@@ -2,7 +2,7 @@ import { useEffect } from 'react';
|
||||
import { ActivityIndicator, StyleSheet, View } from 'react-native';
|
||||
import { useRouter } from 'expo-router';
|
||||
|
||||
import { getOnboardingCompleted, getConsentAccepted, setOnboardingCompleted } from '@/src/storage/appStorage';
|
||||
import { getOnboardingCompleted, getConsentAccepted } from '@/src/storage/appStorage';
|
||||
|
||||
/**
|
||||
* 启动分发:根据 consent 和 onboarding 状态跳转
|
||||
@@ -20,12 +20,6 @@ export default function Index() {
|
||||
const consentAccepted = await getConsentAccepted();
|
||||
if (cancelled) return;
|
||||
|
||||
if (!consentAccepted) {
|
||||
router.replace('/(splash)/splash');
|
||||
return;
|
||||
}
|
||||
if (cancelled) return;
|
||||
|
||||
if (!consentAccepted) {
|
||||
router.replace('/(splash)/splash');
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user