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

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

Open
abdalafer opened this issue Feb 12, 2018 · 3 comments
Open

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

abdalafer opened this issue Feb 12, 2018 · 3 comments

Comments

@abdalafer
Copy link

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?

@francisco-sanchez-molina
Copy link
Owner

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.

@techeverri
Copy link

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

@OrmEmbaar
Copy link

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?

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

4 participants