react-native-native-exception
v1.0.0
Published
Utiliy to raise a native exception
Downloads
6
Readme
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.