guhungry / react-native-photo-manipulator

React Native Image Processing API to edit photo programmatically for Android and iOS. It features print text, overlay on another image (add watermark), resize, crop, flip, rotate and optimize image size then convert file format to jpeg or png
MIT License
328 stars 38 forks source link

null is not an object error #499

Closed hamncheez closed 2 weeks ago

hamncheez commented 2 years ago

Hi, like the title says, I'm getting this error when trying to use any of the public methods. I'm importing it correctly with modern ES6 best practices. Any suggestions?

image

andre-luiz1997 commented 2 years ago

@hamncheez Have you found any solution to this Issue? I am developing an app in Expo with react-native: 0.64.3 and still getting the same error. Seems that is something related to auto-linking. Any updates, @guhungry

andreiwow2 commented 2 years ago

@andre-luiz1997 @hamncheez You have to do pod install inside the iOS folder

sameert89 commented 9 months ago

Does it even work with Expo? If there is a linking issue that means we cannot use it with expo.

guhungry commented 2 weeks ago

this library doesn't work with expo due to this is react native native module (not pure javascript)

guhungry commented 2 weeks ago

I am working on the expo-photo-manipulator, but I can't give a timeline for when it will be published.

guhungry commented 2 weeks ago

@hamncheez Have you found any solution to this Issue? I am developing an app in Expo with react-native: 0.64.3 and still getting the same error. Seems that is something related to auto-linking. Any updates, @guhungry

Hi @hamncheez @andre-luiz1997 and @sameert89, It may be too late, but this library does work with Expo without any modification at least on the latest Expo 51. But here are the catches 1) It won't work and never will on Expo Go (Since it does not support the native modules) 2) You need to create a development build to install this library as native module 3) Install dependencies with npx expo install react-native-photo-manipulator or yarn expo install react-native-photo-manipulator 4) Build and run the app compiled on android

Screenshot 2567-08-10 at 23 57 16

compiled on ios

Screenshot 2567-08-10 at 23 59 09

works on android emulator

Screenshot 2567-08-11 at 00 01 46

Cheers