Skip to content

Commit 690220d

Browse files
internal(samples): Add reload JS bundle for Expo sample (#4303)
1 parent 38a8e61 commit 690220d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/expo/app/(tabs)/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Button, StyleSheet } from 'react-native';
22
import Constants from 'expo-constants';
33
import * as Sentry from '@sentry/react-native';
4+
import { reloadAppAsync } from 'expo';
45

56
import { Text, View } from '@/components/Themed';
67
import { setScopeProperties } from '@/utils/setScopeProperties';
@@ -82,6 +83,7 @@ export default function TabOneScreen() {
8283
console.log('Sentry.close() completed.');
8384
}}
8485
/>
86+
<Button title="Reload" onPress={() => reloadAppAsync()} />
8587
</View>
8688
);
8789
}

0 commit comments

Comments
 (0)