Skip to content

React Native EXIF Reader - uses native code both for Android and iOS to read and write EXIF metadata

License

Notifications You must be signed in to change notification settings

inaturalist/react-native-exif-reader

Repository files navigation

react-native-exif-reader

React Native EXIF Reader - uses native code both for Android and iOS to read EXIF metadata. Note that at the moment this is only intended for use with iNaturalist.

Installation

npm install inaturalist/react-native-exif-reader

Usage

import { readExif } from "react-native-exif-reader";

// URL is retrieved from `CameraRoll.getPhotos` - see `App.tsx` in the example app
const result = await readExif('url');
// Result is an object containing date, latitude, longitude and positional_accuracy (if exists).

Developer setup

See https://github.com/inaturalist/iNaturalistReactNative/blob/main/CONTRIBUTING.md for an overview of best practiceses. You'll need a basic React Native development environment.

git clone [email protected]:inaturalist/react-native-exif-reader.git
cd react-native-exif-reader
npm i

Running the example app

cd example
npm i
bundle
(cd ios && pod install)
npx react-native run-ios

To run on a device you may need to run the app via XCode.

About

React Native EXIF Reader - uses native code both for Android and iOS to read and write EXIF metadata

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •