
Expo
チャンネル登録者数 4.04万人
1.3万 回視聴 ・ 353いいね ・ 2025/06/18に公開済み
In this video, Beto walks you through expo-background-task—how it works, when background tasks run, best practices, and things to consider when using it in your Expo apps. You’ll also build a simple Daily Quotes app that fetches and stores quotes in the background, so users always see the latest quote instantly.
Source Code → github.com/betomoedano/daily-quotes-app.git
Background Tasks Doc → docs.expo.dev/versions/latest/sdk/background-task
⌚ Timestamps ⌚
00:00 Introduction
00:31 Demo and Best Practices
03:02 Resources and Documentation
04:02 Installing Dependencies
04:31 Creating a Dev Build
06:00 Creating Utility Functions
07:52 Installing Dev Build
08:33 Defining a Background Task
13:56 Registering a Background Task
17:33 Fetching and Displaying Quotes
18:54 Adding a Foreground Listener
19:05 Triggering Background Tasks Manually (Debug)
21:32 Adding Listener for App State (Background, Foreground)
24:07 Testing
24:59 Conclusion
#Expo #ReactNative #reactnativetutorial
コメント
使用したサーバー: directk
コメントを取得中...