0.1.9 • Published 6 months ago

react-native-exif-metadata v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

react-native-exif-metadata

This package used to update or get image meta data.

Installation

Compatibility

Only support android for now. require react-native >= 0.69

npm install react-native-exif-metadata

Usage

import { getMetaData,saveImageMetaInformation } from 'react-native-exif-metadata';

await saveImageMetaInformation({
  base64String: "base64 image path", 
  latitude: 'latitude in double', 
  longitude: 'longitude in double',
  dateTime: 'date time in string',
  onSuccess: (path)=>{
    console.log("image updated path",path);
  }
})

getMetaData({
  imagePath: "image path",
  onSuccess: (imageMetaData)=>{
    console.log("image meta data",imageMetaData);
  }
})

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

Supported props.

PropTypeDefaultDescription
latitudedouble0.0default value is 0.0
longitudedouble0.0default value is 0.0
dateTimestringtime in string