You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I just ran npx @sentry/wizard@latest -s -i reactNative
My App.tsx
import*asSentryfrom'@sentry/react-native';Sentry.init({dsn: 'https://08f8d9efe65a619d11956c6417b083b7@o4508367923642368.ingest.us.sentry.io/4508448313704448',// uncomment the line below to enable Spotlight (https://spotlightjs.com)// enableSpotlight: __DEV__,tracesSampleRate: 1.0,profilesSampleRate: 1.0,});typeSectionProps=PropsWithChildren<{title: string;}>;functionSection({ children, title }: SectionProps): React.JSX.Element{constisDarkMode=useColorScheme()==='dark';return(<Viewstyle={styles.sectionContainer}><Textstyle={[styles.sectionTitle,{color: isDarkMode ? Colors.white : Colors.black,},]}>{title}</Text>
// I click this button , the sentry cannot work
<Buttontitle='Sentry Try!'onPress={()=>{Sentry.captureException(newError('First error'));}}/><Textstyle={[styles.sectionDescription,{color: isDarkMode ? Colors.light : Colors.dark,},]}>{children}</Text></View>);}functionApp(): React.JSX.Element{constisDarkMode=useColorScheme()==='dark';constbackgroundStyle={backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,};return(<SafeAreaViewstyle={backgroundStyle}><StatusBarbarStyle={isDarkMode ? 'light-content' : 'dark-content'}backgroundColor={backgroundStyle.backgroundColor}/><ScrollViewcontentInsetAdjustmentBehavior="automatic"style={backgroundStyle}><Header/><Viewstyle={{backgroundColor: isDarkMode ? Colors.black : Colors.white,}}><Sectiontitle="Step One">
Edit <Textstyle={styles.highlight}>App.tsx</Text> to change this
screen and then come back to see your edits.
</Section><Sectiontitle="See Your Changes"><ReloadInstructions/></Section><Sectiontitle="Debug"><DebugInstructions/></Section><Sectiontitle="Learn More">
Read the docs to discover what to do next:
</Section><LearnMoreLinks/></View></ScrollView></SafeAreaView>);}conststyles=StyleSheet.create({sectionContainer: {marginTop: 32,paddingHorizontal: 24,},sectionTitle: {fontSize: 24,fontWeight: '600',},sectionDescription: {marginTop: 8,fontSize: 18,fontWeight: '400',},highlight: {fontWeight: '700',},});
export default Sentry.wrap(App);
The text was updated successfully, but these errors were encountered:
Description
Why am I installing an official sentry configuration and when I throw an exception, the exception is not properly monitored?
And I just ran
npx @sentry/wizard@latest -s -i reactNative
My App.tsx
export default Sentry.wrap(App);
The text was updated successfully, but these errors were encountered: