Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native-blob-util getConstants error in expo snack android / ios #385

Open
SheetJSDev opened this issue Jan 25, 2023 · 7 comments
Open

Comments

@SheetJSDev
Copy link

Summary

Importing react-native-blob-util in Expo Snack throws the error

null is not an object (evaluating 's.default.getConstants')

This error does not show up in a normal project.

What platform(s) does this occur on?

Android, iOS

SDK Version

47.0.0

Reproducible demo or steps to reproduce from a blank project

simplest repro: https://snack.expo.dev/7gchaAZa2 . Steps:

  • create a new snack
  • add a dependency on react-native-blob-util in package.json
  • import the dependency somewhere in App.js

.

For an apples-to-apples comparison, https://docs.sheetjs.com/docs/getting-started/example#run-the-demo-locally select "Mobile App". The macOS + iOS, macOS + Android, and Win10 + Android steps have been tested on multiple machines.

The same code in a snack: https://snack.expo.dev/CzKgQUjCH

Android fails with:

snackdroid

iOS fails with:

snackos

@RGLxAkuma
Copy link

I am getting the same error, is there any solution??

@wimil
Copy link

wimil commented Feb 5, 2023

I have the same error and my project is stuck, any solution or similar package ?

@RonRadtke
Copy link

But this is likely to the fact that I'm heavily using native code written in java and the lib not being part of the Expo SDK. So you can't use it.

@JuanjoOrt
Copy link

Hello, im having the same issue :(

@RGLxAkuma
Copy link

But this is likely to the fact that I'm heavily using native code written in java and the lib not being part of the Expo SDK. So you can't use it.

Are you planning to make this module work with expo or do you know any substitute for you package which works on expo?

@KrishnaSwaroopa
Copy link

hello having same issue here is it fixed?

@cheprasov-dev
Copy link

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants