Add nativeCrash tester

This commit is contained in:
Eric Bailey
2025-10-21 09:52:40 -05:00
parent 9fbf829236
commit 1838f4a6dc
+8
View File
@@ -3,6 +3,7 @@ import {View} from 'react-native'
import {useNavigation} from '@react-navigation/native'
import {type NavigationProp} from '#/lib/routes/types'
import {Sentry} from '#/logger/sentry/lib'
import {useSetThemePrefs} from '#/state/shell'
import {ListContained} from '#/view/screens/Storybook/ListContained'
import {atoms as a, ThemeProvider} from '#/alf'
@@ -95,6 +96,13 @@ function StorybookInner() {
testID="sharedPrefsTestOpenBtn">
<ButtonText>Open Shared Prefs Tester</ButtonText>
</Button>
<Button
color="negative"
size="large"
onPress={() => Sentry.nativeCrash()}
label="crash">
<ButtonText>Sentry Crash</ButtonText>
</Button>
<ThemeProvider theme="light">
<Theming />