sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

Doesn't catch rendering errors

Open Florent75 opened this issue 1 year ago • 1 comments

OS:

  • [ ] Windows
  • [ ] MacOS
  • [ ] Linux

Platform:

  • [ ] iOS
  • [X] Android

SDK:

  • ["^5.12.0" ] @sentry/react-native (>= 1.0.0)

SDK version: 0.0.0

react-native version: "0.69.7"

Are you using Expo?

  • [ ] Yes
  • [X] No

Are you using sentry.io or on-premise?

  • [ ] sentry.io (SaaS)
  • [ ] on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:

[Link to issue]

Configuration:

(@sentry/react-native)

Sentry.init({
    dsn: 'https://[email protected]/6690753',
    // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
    // We recommend adjusting this value in production.
    tracesSampleRate: 1.0,
    environment: process.env.NODE_ENV || 'production',
});

I have the following issue:

Sentry is not catching a rendering issue. Please find the red screen attached, which has not been catched by Sentry.

Steps to reproduce:

0 - Create a list of 3 item containing : name ShopifyID

Example Item 1: name : "AAA" ShopifyID : 123456

Example Item 2: name : "BBB" ShopifyID : 456789

Example Item 2: name : "CCC" ShopifyID : null

1 - Use this code <View style={{ flex: 1 }}> <View style={{ flex: 1.5 }}><Text>HEADER</Text></View> <View style={{ flex: 4 }}> <FlatList style={{ flex: 1 }} data={this._extractProductReturned()} keyExtractor={(item) => item.ShopifyID.toString()} renderItem={({ item }) => <Text> {item.name} </Text>} ListEmptyComponent={this._renderEmptyFlatList()} persistentScrollbar={true} /> </View> <View style={{ flex: 0.75 }}><Text>FOOTER</Text></View> </View>

Actual result:

Nothing in SENTRY

Expected result:

Entry in SENTRY Dashboard Screenshot 2024-02-22 at 15 52 37

[Expected result]

Florent75 avatar Feb 22 '24 16:02 Florent75

Hi @Florent75, thank you for the message, have you wrapped your application with Sentry.wrap()?

  • https://docs.sentry.io/platforms/react-native/#wrap-your-app

krystofwoldrich avatar Feb 23 '24 12:02 krystofwoldrich

Closing this due to inactivity. If this is still an issue feel free to comment here or open a new issue if the context changed.

krystofwoldrich avatar Mar 15 '24 12:03 krystofwoldrich