<commit_before># Crashalert


As a mobile app developer, you’ve likely faced your own unique challenges in detecting, reproducing and debugging run-time crashes in React Native applications. Of course we need a crash analyzer tool that can track these crashes.

## What Crashalert?

This is a reporter that stores user action steps and runtime crashes info that you can analyze on [Crashlyzer](https://github.com/sytango-technologies/rn-crash-viewer) with a detailed specification of the tracked crashes.  You no longer need to change existing code, you just need to import `rn-crash-reporter` components in your js classes rather than `react-native`.


### Supported Versions 

Version 2.0.5 supports react-native >= 0.52.0

### Platforms

`rn-crash-reporter` supports both the platforms `android` and `iOS`.

### Installation

`$ yarn rn-crash-reporter` or `npm install --save rn-crash-reporter`

## Demo
<a href="https://github.com/SystangoTechnologies/Crashalert/Crashalert.gif"><img src="https://github.com/SystangoTechnologies/Crashalert/Crashalert.gif"></a>

## How to analyze the crashes?

To analyze your app crashes, you should follow Node server and Web client installation [here](https://github.com/sytango-technologies/rn-crash-viewer)

**NOTE:** Please follow the [link here](FLOW_README.md) for the complete installation guide of `Crashlyzer`.

## Basic usage

First of all, you'll need to add following code in your `app.js` or any top hierarchy component in `constructor` or  `componentWillMount()` method. This is required configuration for crash reporter.

```javascript

import { CrashReporter } from 'rn-crash-reporter'

CrashReporter.setConfiguration({
hostURL: 'http://localhost:8000', // Replace this URL with your Server base url, in my case I have setup the node server on my machine itself using docker container
enableReporter: true  // pass false here if you don't want to enable reporting the crashes
});

```

### Sample

You can simply try the following sample code :

```javascript<commit_msg>Updated the readme<commit_after># Crashalert


As a mobile app developer, you’ve likely faced your own unique challenges in detecting, reproducing and debugging run-time crashes in React Native applications. Of course we need a crash analyzer tool that can track these crashes.

## What Crashalert?

This is a reporter that stores user action steps and runtime crashes info that you can analyze on [Crashlyzer](https://github.com/sytango-technologies/rn-crash-viewer) with a detailed specification of the tracked crashes.  You no longer need to change existing code, you just need to import `rn-crash-reporter` components in your js classes rather than `react-native`.


### Supported Versions 

Version 2.0.5 supports react-native >= 0.52.0

### Platforms

`rn-crash-reporter` supports both the platforms `android` and `iOS`.

### Installation

`$ yarn rn-crash-reporter` or `npm install --save rn-crash-reporter`

## Demo
<a href="https://github.com/SystangoTechnologies/Crashalert/blob/master/Crashalert.gif"><img src="https://github.com/SystangoTechnologies/Crashalert/blob/master/Crashalert.gif"></a>

## How to analyze the crashes?

To analyze your app crashes, you should follow Node server and Web client installation [here](https://github.com/sytango-technologies/rn-crash-viewer)

**NOTE:** Please follow the [link here](FLOW_README.md) for the complete installation guide of `Crashlyzer`.

## Basic usage

First of all, you'll need to add following code in your `app.js` or any top hierarchy component in `constructor` or  `componentWillMount()` method. This is required configuration for crash reporter.

```javascript

import { CrashReporter } from 'rn-crash-reporter'

CrashReporter.setConfiguration({
hostURL: 'http://localhost:8000', // Replace this URL with your Server base url, in my case I have setup the node server on my machine itself using docker container
enableReporter: true  // pass false here if you don't want to enable reporting the crashes
});

```

### Sample

You can simply try the following sample code :

```javascript
{'fraction_non_alphanumeric': 0.09311443273707425, 'fraction_numerical': 0.005390835579514825, 'mean_word_length': 4.8065433854907536, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3762682', 'n_tokens_mistral': 1186, 'n_tokens_neox': 1113, 'n_words': 475}