Skip to content

A react native module that lets you to register a global error handler that can capture fatal/non fatal uncaught exceptions.

License

Notifications You must be signed in to change notification settings

kukuandroid/crashy

 
 

Repository files navigation

Crashy Project

Battery-included with automatic error logging, just provide your api server url

Example : Crashy.init('your-server-api-url')

Usage

npm i [email protected]:kukuandroid/crashy.git#stable --save

In your app.js or application root,

import Crashy from "crashy"

const options = {
    apiUrl: "https://sit-maya.maybank.com.my/v1/logs",
    errorTitle: "Error Title",
    customerId : "88a123x-12asdwx-19kks92a"
};
  
 <Crashy options={options}>
 {YourApplicationCode}
 </Crashy>

Peer-dependencies

Crashy has dependencies to libraries as below, make sure to install it :

No Library Link
1 React Native Device Info https://github.com/react-native-device-info/react-native-device-info
2 Async Storage https://react-native-async-storage.github.io/async-storage/docs/install
3 React Native NetInfo https://github.com/react-native-netinfo/react-native-netinfo

For [email protected] or above

As [email protected] or above supports autolinking, so there is no need to run linking process. Read more about autolinking here.

Option Properties

Property Type Default Desc
apiLogUrl (required) String null Log Error Server Url
errorTitle String default Alert message title
errorMessage String default Alert message body

Maybank : Engineering Team

Peace ! ✌🏻🍻

About

A react native module that lets you to register a global error handler that can capture fatal/non fatal uncaught exceptions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 37.8%
  • Java 32.3%
  • JavaScript 24.6%
  • Ruby 5.3%