add storybook crash button

This commit is contained in:
Samuel Newman
2026-08-27 23:44:16 +01:00
parent 5eb5ac4800
commit 3385718aac
+10 -1
View File
@@ -13,6 +13,7 @@ import {
useDeviceGeolocationApi,
useRequestDeviceGeolocation,
} from '#/geolocation'
import {Sentry} from '#/logger/sentry/lib'
import {Admonitions} from './Admonitions'
import {Breakpoints} from './Breakpoints'
import {Buttons} from './Buttons'
@@ -97,10 +98,18 @@ export default function Storybook() {
}
})
}}
label="crash">
label="Get GPS location">
<ButtonText>Get GPS Location</ButtonText>
</Button>
<Button
color="negative"
size="large"
onPress={() => Sentry.nativeCrash()}
label="Crash the app to test Sentry">
<ButtonText>Crash the app</ButtonText>
</Button>
<Button
color="primary"
size="large"