Skip to content

[tvOS] Apple TV warning should only happen once #1021

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

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

douglowder
Copy link
Contributor

Summary

It is not necessary for Apple TV to do a logbox warning about async storage every time the app is reloaded.

This change just places the warning in a dispatch_once() so that it occurs only when the app is started.

Test Plan

Tested using the app at https://github.com/douglowder/IgniteTVTest, which has the patch provided in this PR.

Copy link
Member

@tido64 tido64 left a comment

Choose a reason for hiding this comment

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

Thanks, this looks good to me. Before we merge though, I just want to verify with @krizzu that we can still publish new versions in the current repo state.

@krizzu
Copy link
Member

krizzu commented Nov 1, 2023

Should be good to go

@tido64 tido64 merged commit c770d4d into react-native-async-storage:main Nov 1, 2023
@AsyncStorageBot
Copy link
Collaborator

🎉 This PR is included in version 1.19.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@douglowder
Copy link
Contributor Author

Thanks very much @tido64 @krizzu !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants