INNER CODE UNIT · JavaScript

prepare

calebnance/expo-spotify · App.js:16

    async function prepare() {
      try {
        // keeps the splash screen visible while assets are cached
        await SplashScreen.preventAutoHideAsync();

        // pre-load/cache assets: images, fonts, and videos
        await func.loadAssetsAsync();
      } catch (e) {
        // console.warn(e);
      } finally {
        // loading is complete
        setIsLoading(false);
      }
    }

    prepare();
  }, []);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…