From 1f2b9a8ef5510066efa90778c9c3d095b5bac330 Mon Sep 17 00:00:00 2001 From: Krystof Woldrich Date: Tue, 6 May 2025 17:07:18 +0200 Subject: [PATCH 1/2] chore(expo-sample): Add Expo Dev Client --- samples/expo/app/(tabs)/index.tsx | 13 ++++-- samples/expo/package.json | 1 + yarn.lock | 74 +++++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+), 3 deletions(-) diff --git a/samples/expo/app/(tabs)/index.tsx b/samples/expo/app/(tabs)/index.tsx index 8b651d2d54..8b6f59b719 100644 --- a/samples/expo/app/(tabs)/index.tsx +++ b/samples/expo/app/(tabs)/index.tsx @@ -2,6 +2,7 @@ import { Button, StyleSheet } from 'react-native'; import Constants from 'expo-constants'; import * as Sentry from '@sentry/react-native'; import { reloadAppAsync } from 'expo'; +import * as DevClient from 'expo-dev-client'; import { Text, View } from '@/components/Themed'; import { setScopeProperties } from '@/utils/setScopeProperties'; @@ -9,7 +10,7 @@ import React from 'react'; import * as WebBrowser from 'expo-web-browser'; import { useUpdates } from 'expo-updates'; -const isRunningInExpoGo = Constants.appOwnership === 'expo' +const isRunningInExpoGo = Constants.appOwnership === 'expo'; export default function TabOneScreen() { const { currentlyRunning } = useUpdates(); @@ -20,6 +21,12 @@ export default function TabOneScreen() { Update ID: {currentlyRunning.updateId} Channel: {currentlyRunning.channel} Runtime Version: {currentlyRunning.runtimeVersion} +