Try without Sentry

This commit is contained in:
Zhiyuan Zheng 2021-01-22 02:04:00 +01:00
parent 7c6aba77ba
commit e820ce3690
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
2 changed files with 6 additions and 6 deletions

View File

@ -192,7 +192,7 @@ const Compose: React.FC<SharedComposeProp> = ({
navigation.goBack() navigation.goBack()
}) })
.catch(error => { .catch(error => {
Sentry.Native.captureException(error) // Sentry.Native.captureException(error)
haptics('Error') haptics('Error')
composeDispatch({ type: 'posting', payload: false }) composeDispatch({ type: 'posting', payload: false })
Alert.alert(t('heading.right.alert.title'), undefined, [ Alert.alert(t('heading.right.alert.title'), undefined, [

View File

@ -4,11 +4,11 @@ import log from './log'
const sentry = () => { const sentry = () => {
log('log', 'Sentry', 'initializing') log('log', 'Sentry', 'initializing')
return Sentry.init({ // return Sentry.init({
dsn: Constants.manifest.extra.sentryDSN, // dsn: Constants.manifest.extra.sentryDSN,
enableInExpoDevelopment: false, // enableInExpoDevelopment: false,
debug: __DEV__ // debug: __DEV__
}) // })
} }
export default sentry export default sentry