How to use the appcenter-crashes.generateTestCrash function in appcenter-crashes

To help you get started, we’ve selected a few appcenter-crashes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / appcenter-sdk-react-native / DemoApp / app / screens / CrashesScreen.js View on Github external
async nativeCrash() {
    // In Android debug or non app store environment for iOS.
    await Crashes.generateTestCrash();

    // If the SDK disabled the test crash, use this one.
    await NativeModules.DemoAppNative.generateTestCrash();
  }
github microsoft / appcenter-sdk-react-native / TestApp / app / screens / CrashesScreen.js View on Github external
async nativeCrash() {
    // In Android debug or non app store environment for iOS.
    await Crashes.generateTestCrash();

    // If the SDK disabled the test crash, use this one.
    await NativeModules.TestAppNative.generateTestCrash();
  }
github microsoft / appcenter-sampleapp-react-native / src / screens / crashesScreen.tsx View on Github external
                    [{ text: "Cancel" }, { text: "Crash App", onPress: () => Crashes.generateTestCrash() }],
                    { cancelable: false }