diff --git a/app/screens/WelcomeScreen.tsx b/app/screens/WelcomeScreen.tsx index a7ee0415..7dee0d3f 100644 --- a/app/screens/WelcomeScreen.tsx +++ b/app/screens/WelcomeScreen.tsx @@ -7,6 +7,7 @@ import { useAppNavigation } from "../hooks" import { AppStackScreenProps } from "../navigators" import { colors, spacing } from "../theme" import messaging from "@react-native-firebase/messaging" +import { prefetchScheduledEvents } from "../services/api" const welcomeLogo = require("../../assets/images/welcome-shapes.png") const { width: screenWidth } = Dimensions.get("screen") @@ -35,6 +36,10 @@ export const WelcomeScreen: React.FC = (_props) => { requestUserPermission() }, []) + useLayoutEffect(() => { + prefetchScheduledEvents() + }, []) + return (