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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰] Timestamp undefined for iOS image/video captured in app #2246

Open
mattlewer opened this issue Nov 28, 2023 · 0 comments
Open

[馃悰] Timestamp undefined for iOS image/video captured in app #2246

mattlewer opened this issue Nov 28, 2023 · 0 comments

Comments

@mattlewer
Copy link

mattlewer commented Nov 28, 2023

Description

When using the camera on iOS and capturing an image or video, the asset.timestamp is undefined when includeExtra: true

How to repeat issue and example

Take photo or video on iOS with includeExtra set to true, log the asset.timestamp, it's undefined

Solution

For asset.timestamp to use the time the image/video was taken. I can use the current time, but it's handy to pull this out of the exif data available, this currently works for Android and only fails on iOS.

Additional Information

  • Image Picker version: 7.0.2
  • React Native version: 0.72.6
  • Platform: iOS
  • Development Operating System: MacOS
  • Dev tools: xCode 15.0, iPhone 12 - 17.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant