Add nativeCrash tester
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user