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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[camera] stopRecording, pausePreview and resumePreview have been updated to return promises #25737

Merged
merged 3 commits into from
Dec 4, 2023

Conversation

lukmccall
Copy link
Contributor

Why

stopRecording, pausePreview, and resumePreview should return promises. Otherwise, users can't wait for the response from the native code.

Test Plan

  • test-suite ✅

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Dec 4, 2023
Copy link
Contributor

@Kudo Kudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix the ci check-package errors before merge.

@lukmccall lukmccall merged commit 28ca0b9 into main Dec 4, 2023
@lukmccall lukmccall deleted the @lukmccall/camera/return-promises branch December 4, 2023 16:46
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Dec 4, 2023
onizam95 pushed a commit to onizam95/expo-av-drm that referenced this pull request Jan 15, 2024
…n updated to return promises (expo#25737)

# Why

`stopRecording`, `pausePreview`, and `resumePreview` should return promises. Otherwise, users can't wait for the response from the native code. 

# Test Plan

- test-suite ✅
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants