infinitered / nsfwjs-mobile

NSFWjs in React Native
MIT License
111 stars 24 forks source link

Error: FileReader.readAsArrayBuffer is not implemented #9

Closed JoonJoon123 closed 4 years ago

JoonJoon123 commented 4 years ago

Hi @GantMan @kevinvangelder ,

I tried this code in a new react native project but I was getting this error. I used react-native 0.61.5 and react 16.9.0 to produce this error.

[Unhandled promise rejection: Error: FileReader.readAsArrayBuffer is not implemented]

kevinvangelder commented 4 years ago

I feel like I had to write a shim for this and maybe I didn't do an upstream PR. Unfortunately I won't have access to the computer I built this project on for the next week so I'm not currently able to check. Can you try with react 16.9.0 and react-native 0.60.5 and see if you get a different result?

GantMan commented 4 years ago

I'll keep watching this ticket.

kevinvangelder commented 4 years ago

@JoonJoon123 I had some spare time so I tried running this with the default package versions and everything appears to be running correctly.

JoonJoon123 commented 4 years ago

Hey @kevinvangelder ,

I was able to successfully run the app on my iPhone. Thanks for the help.

I will close this issue.

RobinBobin commented 3 years ago

Hi! I'm having the same issue under Android 9: Error: FileReader.readAsArrayBuffer is not implemented. react: 16.13.1. react-native: 0.63.3.