INNER CODE UNIT · JavaScript

App

jellyfin/jellyfin-ios · App.js:36

const App = ({ skipLoadingScreen }) => {
	const [ isSplashReady, setIsSplashReady ] = useState(false);
	const { rootStore, settingStore } = useStores();
	const { theme } = useContext(ThemeContext);
	const isHydrated = useIsHydrated();
	const colorScheme = useColorScheme();
	const { isMigrated, migrateStores } = useMobxMigration();

	// Initialize download hook
	useDownloadHandler(isMigrated);

	// Store the system color scheme for automatic theme switching
	useEffect(() => {
		// Don't set state while hydrating
		if (!isMigrated) return;

		console.debug('system theme changed:', colorScheme);
		settingStore.set({

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…