@@ -24,8 +24,9 @@ import {
2424 checkAutomatically ,
2525} from 'expo-updates' ;
2626import { connect } from 'react-redux' ;
27- import { getFullVersion } from '../../../../constants/ota' ;
27+ import { getFullVersion , OTA_VERSION } from '../../../../constants/ota' ;
2828import { fontStyles } from '../../../../styles/common' ;
29+ import { captureException } from '@sentry/react-native' ;
2930import PropTypes from 'prop-types' ;
3031import { strings } from '../../../../../locales/i18n' ;
3132import { getNavigationOptionsTitle } from '../../../UI/Navbar' ;
@@ -192,6 +193,12 @@ class AppInformation extends PureComponent {
192193 this . setState ( { showEnvironmentInfo : true } ) ;
193194 } ;
194195
196+ onSendSentryTestError = ( ) => {
197+ captureException (
198+ new Error ( `OTA update Sentry test error production ${ OTA_VERSION } ` ) ,
199+ ) ;
200+ } ;
201+
195202 render = ( ) => {
196203 const colors = this . context . colors || mockTheme . colors ;
197204 const styles = createStyles ( colors ) ;
@@ -271,6 +278,11 @@ class AppInformation extends PureComponent {
271278 ) }
272279 </ View >
273280 < Text style = { styles . title } > { strings ( 'app_information.links' ) } </ Text >
281+ < TouchableOpacity onPress = { this . onSendSentryTestError } >
282+ < Text style = { styles . link } >
283+ Send Sentry test error production { OTA_VERSION }
284+ </ Text >
285+ </ TouchableOpacity >
274286 < View style = { styles . links } >
275287 < TouchableOpacity onPress = { this . onPrivacyPolicy } >
276288 < Text style = { styles . link } >
0 commit comments