react-native-async-storage / async-storage

An asynchronous, persistent, key-value storage system for React Native.
https://react-native-async-storage.github.io/async-storage/
MIT License
4.61k stars 459 forks source link

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

Closed douglowder closed 8 months ago

douglowder commented 8 months ago

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.

krizzu commented 8 months ago

Should be good to go

AsyncStorageBot commented 8 months ago

:tada: This PR is included in version 1.19.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

douglowder commented 8 months ago

Thanks very much @tido64 @krizzu !