# react-native-error-manager

> Will look for errors in react native application and it automatically report it to the developers using react native santry

Latest version **1.2.0** (published 2020-12-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-error-manager
pnpm add react-native-error-manager
yarn add react-native-error-manager
bun add react-native-error-manager
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2020-12-19 |
| First published | 2020-12-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | Uday Kumar |
| Maintainers | uday8373 |
| Keywords | react-native, error-handle, sentry-react-native, sentry |

## Links

- npm: https://www.npmjs.com/package/react-native-error-manager
- Repository: https://github.com/uday8373/RN-error-handling
- Homepage: https://github.com/uday8373/RN-error-handling#readme
- Issues: https://github.com/uday8373/RN-error-handling/issues
- npm.io page: https://npm.io/package/react-native-error-manager

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 1.2.0 (latest) — 2020-12-19
- 1.0.10 — 2020-12-19
- 1.0.9 — 2020-12-19
- 1.0.8 — 2020-12-19
- 1.0.7 — 2020-12-19
- 1.0.6 — 2020-12-19
- 1.0.5 — 2020-12-19
- 1.0.4 — 2020-12-19
- 1.0.3 — 2020-12-19
- 1.0.2 — 2020-12-19
- 1.0.1 — 2020-12-19

## README

# React Native Error Manager 

This simple and very lightweight library will help to show users a error screen while any error happen in a production build.

# Usage 

    import React from 'react'
    import MyComponent from '../MyComponent'
    import ErrorBoundary from 'react-native-error-manager'

    export const Home = () => {
        return(
            <ErrorBoundary>
                <MyComponent />
            </ErrorBoundary>
        )
    }


# Custom error component

    import React from 'react'
    import {View, Text} from 'react-native'
    import MyComponent from '../MyComponent'
    import ErrorBoundary from 'react-native-error-manager'

    export const Home = () => {

        const ErrorComponent = () => (
            <View style={{justifyContent:'center', alignItems: 'center', flex:1, backgroundColor: 'red'}}>
                <Text style={{fontSize: 30, color: '#fff', textAlign: 'center'}}>Hello this is error</Text>
            </View>
        )

        return(
            <ErrorBoundary component={<ErrorComponent />}>
                <MyComponent />
            </ErrorBoundary>
        )
    }

# Way to see the error

> Sentry can be used for logging error with all the environments 
> link - https://docs.sentry.io/platforms/react-native/

>
* npm install --save @sentry/react-native
* npx @sentry/wizard -i reactNative -p ios android
* cd ios
* pod install

---
_Source: https://npm.io/package/react-native-error-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
