Skip to content

errorCodes and isErrorWithCode are not correctly exported with '@react-native-documents/viewer' #795

Closed
@930r91na

Description

@930r91na

I have searched open and closed issues for this issue.

  • I have searched open and closed issues.

Minimal reproducible example

null

What platform(s) does this occur on?

Android

Steps to reproduce

Try importing modules like this:
import { viewDocument, errorCodes, isErrorWithCode } from '@react-native-documents/viewer';

you will get that there is no modules for the ones exported in error.ts

Image

Your computer environment

npx react-native info
info Fetching system and libraries information...
System:
  OS: Windows 11 10.0.22631
  CPU: (16) x64 13th Gen Intel(R) Core(TM) i7-13620H
  Memory: 492.06 MB / 15.74 GB
Binaries:
  Node:
    version: 23.9.0
    path: C:\nvm4w\nodejs\node.EXE
  Yarn: Not Found
  npm:
    version: 10.9.2
    path: C:\nvm4w\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.13.35825.156 (Visual Studio Community 2022)
Languages:
  Java: 22.0.2
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions