npm.io
0.1.9 • Published 2 years ago

react-native-exif-metadata

Licence
MIT
Version
0.1.9
Deps
0
Size
27 kB
Vulns
0
Weekly
0
Stars
1

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.

Prop Type Default Description
latitude double 0.0 default value is 0.0
longitude double 0.0 default value is 0.0
dateTime string time in string

Keywords