Skip to main content

How to filter native events in React Native SDK

Issue

I want to filter native events (from Android, iOS, or Native) in my React Native SDK application.
​

Applies To

  • All SaaS Customers

  • Error Monitoring

  • React Native SDK
    ​

Resolution

The beforeSend and other filters set on the JavaScript layer do not filter events from the Java, iOS and native layers.
​

To solve it, manually initialize the Native SDK with its own filters. Here are the steps:

  1. Follow the steps on this page to disable auto native initialization.

  2. Follow the platform specific filtering guides to filter unwanted events:

Did this answer your question?