@shakebugs/react-native-shake
TypeScript icon, indicating that this package has built-in type declarations

16.2.1 • Public • Published

Shake React Native SDK

npm version

React Native plugin for bug reporting.

Features

Feature Available
Bug reporting
Crash reporting
Users

Requirements

Platform Version
React Native 0.56
Android 5.0
iOS 12.0

How to use

Install Shake

Execute the npm install command in your terminal:

npm install @shakebugs/react-native-shake

Install pods from the project root directory:

cd ios && pod install && cd ..

Start Shake

Call Shake.start() method in the index.js file.

import {AppRegistry} from 'react-native';
import App from './src/App';
import {name as appName} from './app.json';
import Shake from '@shakebugs/react-native-shake';

AppRegistry.registerComponent(appName, () => App);

Shake.start('client-id', 'client-secret');

Replace client-id and client-secret with the actual values you have in your workspace settings.

Troubleshooting

If you get the following error during the build time:

Execution failed for task ':app:mergeDexDebug'.

You should set multiDexEnabled flag in app-level build.gradle like below:

defaultConfig {
    applicationId "com.shakebugs.react.example"
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode 1
    versionName "1.0.0"
    multiDexEnabled true
}

Resources

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @shakebugs/react-native-shake

    Weekly Downloads

    1,609

    Version

    16.2.1

    License

    MIT

    Unpacked Size

    245 kB

    Total Files

    62

    Last publish

    Collaborators

    • decode-hq