Skip to content

Commit

Permalink
Add prefetchScheduledEvents to WelcomeScreen
Browse files Browse the repository at this point in the history
joshuayoes committed Apr 12, 2023

Unverified

This user has not yet uploaded their public signing key.
1 parent 4db2bb0 commit e156b15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/screens/WelcomeScreen.tsx
Original file line number Diff line number Diff line change
@@ -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<WelcomeScreenProps> = (_props) => {
requestUserPermission()
}, [])

useLayoutEffect(() => {
prefetchScheduledEvents()
}, [])

return (
<Screen style={$container}>
<View style={$topContainer}>

0 comments on commit e156b15

Please sign in to comment.