1.0.0 • Published 4 years ago

react-native-native-exception v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Native Exception

In React Native there are two types of exceptions:

  • JS exceptions.
  • Native exceptions.

This library exposes a function called raiseNativeError that can be used to throw a Native exception:

import NativeException from 'react-native-native-exception';

NativeException.raiseNativeError('Oops!');

Installation

yarn add --dev react-native-native-exception

Observations

This is just a rip off of rn-test-exception-handler but working with the latest React native version. It only supports Android, as I can't currently test iOS code.