react-native-exif icon indicating copy to clipboard operation
react-native-exif copied to clipboard

(Exif.getExif) TypeError: undefined is not an object

Open abdalafer opened this issue 7 years ago • 3 comments

Hello, I am trying to use this library and I get the following error: react-native: 0.51.0

TypeError: undefined is not an object (evaluating '_reactNative.NativeModules.ReactNativeExif.getExif')

These were the changes made during the Linking

MainActivity.java:

import com.devialab.exif.RCTExifPackage;

build.gradle:

import com.devialab.exif.RCTExifPackage;

settings.gradle:

include ':react-native-exif'
project(':react-native-exif').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-exif/android')

Will this error come up when an image path is not correct? Can this library support reading from a base64 string?

abdalafer avatar Feb 12 '18 20:02 abdalafer

Hi!

do you add RCTExifPackage() to getPackages on MainApplication? Anyway, you can setup this library with react-native link command.

Sorry, it only work with local filesystem images.

@francisco-sanchez-molina Thanks for your reply. Seems this should be part of the README.md

techeverri avatar Jun 01 '18 15:06 techeverri

I have linked the library, but I am still getting this error on iOS. Is there something else that I am supposed to do to get it working?

OrmEmbaar avatar Oct 24 '18 11:10 OrmEmbaar