向哨兵发送警告消息(react-native-sentry)

Send warning messages to Sentry (react-native-sentry)

我安装了 Sentry 来跟踪我的移动应用程序的崩溃。它工作正常,现在我想向哨兵发送警告消息以跟踪它们。有没有办法从 JavaScript 方面做到这一点。 谢谢。

// set a custom message
Sentry.captureMessage("TEST message", {
  level: SentrySeverity.Warning
}); // Default SentrySeverity.Error

React Native config docs.

中突出显示了很多可用的方法