JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 112
  • Score
    100M100P100Q74066F
  • License MIT

An internal module in Expo that helps us standardize error handling across all of our modules and provide a place for all error-related code to live.

Package Exports

  • expo-errors

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (expo-errors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

expo-errors

An internal module in Expo that helps us standardize error handling across all of our modules and provide a place for all error-related code to live.

Installation

This package is pre-installed in managed Expo projects. You may skip the rest of the installation guide if this applies to you.

For bare React Native projects, this package is included in @unimodules/core, so if you use that then you already have this! If you are intentionally not using that package, follow the stpes below to install expo-errors manually.

Add the package to your npm dependencies

npm install expo-errors

Configure for iOS

Add the dependency to your Podfile and then run pod install.

pod 'EXErrors', path: '../node_modules/expo-errors/ios'

Configure for Android

  1. Append the following lines to android/settings.gradle:
include ':expo-errors'
project(':expo-errors').projectDir = new File(rootProject.projectDir, '../node_modules/expo-errors/android')
  1. Insert the following lines inside the dependencies block in android/app/build.gradle:
api project(':expo-errors')

Contributing

Contributions are very welcome! Please refer to guidelines described in the contributing guide.