正在加载视频...

视频加载失败

Expo + React Server Components (preview) 🚀 Just open sourced a new movies app demo using Expo Router and React server functions. Native data fetching, loading states, and error handling have never been this easy! → Runs on iOS, Web, and Android

72,143 次观看 • 1 年前 •via X (Twitter)

12 条评论

Evan Bacon 🥓 的头像
Evan Bacon 🥓1 年前

Here's the source, just need to add env vars for TMDB

Callstack Engineers 的头像
Callstack Engineers1 年前

Grab your popcorn 🍿 Our React Native for TV guide is here, packed with the latest techniques and best practices. Don't miss out on this essential update to keep your apps running at peak performance 🚀 Download it now 🔗

Gabriel Moreira 的头像
Gabriel Moreira1 年前

Promising! I noticed the use of expo-router and expo-image in the code. If the client app is running an older version of expo-image that doesn’t support a certain property, will this trigger an error on the client or will the property be ignored?

Amy Chen 的头像
Amy Chen1 年前

Very cool 🤩

Nathan Walker 的头像
Nathan Walker1 年前

Looks neat! I was just trying out the web, am I missing something for it to run? maybe a dep is missing?

Evan Bacon 🥓 的头像
Evan Bacon 🥓1 年前

error is in the console (server) it may be the env vars

Lionel Nguyen 的头像
Lionel Nguyen1 年前

Thanks for sharing. Can’t wait to play with it!

Evan Bacon 🥓 的头像
Evan Bacon 🥓1 年前

great, let me know how it goes!

Adiel Hercules 的头像
Adiel Hercules1 年前

Amazing! How does the server handle this? Is expo start --web doing the magic here?

Evan Bacon 🥓 的头像
Evan Bacon 🥓1 年前

expo start is hosting the dev server for all platforms! To run the prod server: npx expo export && npx expo serve

Manish Baghel 的头像
Manish Baghel1 年前

What's the benefit of using React server components in native?

Evan Bacon 🥓 的头像
Evan Bacon 🥓1 年前

the environment variables are secure by default, no hooks for data fetching—just components and suspense, bundle splitting for client code, streamed rendering. It’s game changing magic

相关视频