title: master-atul/react-native-exception-handler - does not capture errors in node_modules
body: <p>I am only able to get this to work for issues at the application level, if an error is thrown from any package in the node_modules, it is not captured.</p>
  
  <p>below is my GlobalErrorHandler, i have imported this into my app.js file at the top of my application so was expecting it to capture any exception in the application.</p>
  
  <p>the expected behaviour would be for the <code>this.test()</code> exception to be thrown and from <code>node_modules/AnotherUIDependency</code> and captured by the globalErrorHandler</p>
  
  <p><strong>app.js</strong></p>
  
  <pre><code>...
  import { GlobalErrorHandler } from 'MASKED/globalErrorHandler'
  ...
  </code></pre>
  
  <p><strong>globalErrorHandler.js</strong></p>
  
  <pre><code>import { Alert } from 'react-native'
  import { GlobalStrings } from 'MASKED'
  import RNExitApp from 'react-native-exit-app'
  import {
    setJSExceptionHandler,
    setNativeExceptionHandler
  } from 'react-native-exception-handler'
  
  errorHandler = (e, isFatal) =&gt; {
    Alert.alert(
      GlobalStrings.globalErrorHandler.title,
      // eslint-disable-next-line no-undef
      errorMessage(e, isFatal, __DEV__),
      [
        {
          text: GlobalStrings.globalErrorHandler.exit,
          onPress: () =&gt; {
            RNExitApp.exitApp()
          }
        }
      ],
      { cancelable: false }
    )
  }
  
  errorMessage = (e, isFatal, isDev) =&gt; {
    let val = null
    if (isDev) {
      val =
        GlobalStrings.globalErrorHandler.error +
        `: ${isFatal ? GlobalStrings.globalErrorHandler.fatal : ''}` +
        '\n\n' +
        e.name +
        ':' +
        e.message
    } else {
      if (!isFatal) {
        val = GlobalStrings.globalErrorHandler.exceptionMessage
      } else {
        val = GlobalStrings.globalErrorHandler.nonFatal + ': ' + e
      }
    }
    return val
  }
  
  setJSExceptionHandler(errorHandler, true)
  setNativeExceptionHandler(errorString =&gt; {
    Alert.alert(
      GlobalStrings.globalErrorHandler.nativeExceptionMessage + ': ' + errorString
    )
  })
  </code></pre>
  
  <p><strong>node_modules/AnotherUIDependency</strong></p>
  
  <pre><code>...
  export default class myComponent extends Component {
      render(
          return{
              this.test() // expected globalErrorHandler capture
              ...
          }
      )
  }
  </code></pre>