mybigday / react-native-media-meta

Get media file metadata in your React Native app
MIT License
83 stars 46 forks source link

undefined is not an object (evaluating 'RNMediaMeta.get') #16

Open jose920405 opened 6 years ago

jose920405 commented 6 years ago

"react-native": "^0.51.0", "react-native-media-meta": "^0.0.10",

My implementation

MediaMeta.get('content://media/external/images/media/986')
      .then(metadata => console.log('HERE METADATA ', metadata))
      .catch(err => console.error(err));
zhoujinzong commented 5 years ago

I have the same problem,Have you solved it?

surenderkhowal commented 5 years ago

Any One there to solve this error for never version of React-Native

b42thomas commented 5 years ago

I'm also getting an error like this, i get

 Possible Unhandled Promise Rejection (id: 0)
TypeError: null is not an object (evaluating 'RNMediaMeta.get')
b42thomas commented 5 years ago

I got it to work after removing the dev app from my phone and rebuilding it.

I think anytime you add a react-native module you need to rebuild your native source code

isohanvanani commented 4 years ago

Resolved

codeMagic122 commented 2 years ago

Hi, I'm having the same exact problem as above. Couldn't solve with any of the listed steps.

Currently using "react-native": "0.64.3" and "react-native-media-meta": "^0.0.11"

Would appreciate any help!

sir-george2500 commented 1 year ago

I have the same problem I have create the podspec file but I am still having trouble as anyone resolved this isssue