disableLogging

Disables verbose logging within the native MobilePush SDK.

Syntax 

1MCReactModule.disableLogging();

Returns 

  • void - No return value.

Example 

1import { MCReactModule } from "react-native-marketingcloudsdk";
2
3const disableSDKLogging = () => {
4  try {
5    MCReactModule.disableLogging();
6    console.log("SDK logging disabled");
7  } catch (error) {
8    console.error("Error disabling logging:", error);
9  }
10};

See Also 

Related Methods