Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.44 KB

README.md

File metadata and controls

57 lines (39 loc) · 1.44 KB

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, Platform} 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);

const apiKey = Platform.OS === 'ios' ? 'ios-app-api-key' : 'android-app-api-key';
Shake.start(apiKey);

Replace ios-app-api-key and android-app-api-key with the actual values you have in your app settings.

Resources