add storybook crash button
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
|||||||
useDeviceGeolocationApi,
|
useDeviceGeolocationApi,
|
||||||
useRequestDeviceGeolocation,
|
useRequestDeviceGeolocation,
|
||||||
} from '#/geolocation'
|
} from '#/geolocation'
|
||||||
|
import {Sentry} from '#/logger/sentry/lib'
|
||||||
import {Admonitions} from './Admonitions'
|
import {Admonitions} from './Admonitions'
|
||||||
import {Breakpoints} from './Breakpoints'
|
import {Breakpoints} from './Breakpoints'
|
||||||
import {Buttons} from './Buttons'
|
import {Buttons} from './Buttons'
|
||||||
@@ -97,10 +98,18 @@ export default function Storybook() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
label="crash">
|
label="Get GPS location">
|
||||||
<ButtonText>Get GPS Location</ButtonText>
|
<ButtonText>Get GPS Location</ButtonText>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
color="negative"
|
||||||
|
size="large"
|
||||||
|
onPress={() => Sentry.nativeCrash()}
|
||||||
|
label="Crash the app to test Sentry">
|
||||||
|
<ButtonText>Crash the app</ButtonText>
|
||||||
|
</Button>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
color="primary"
|
color="primary"
|
||||||
size="large"
|
size="large"
|
||||||
|
|||||||
Reference in New Issue
Block a user