mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
5e79fa8441
Summary: Brings in line with rest of code base and avoids running into this error ``` ‘sharedApplication’ is unavailable: not available on iOS (App Extension) — Use view controller based solutions where appropriate instead. ``` when `Requires Only App-Extension-Safe-API` is set to Yes. ## Changelog [iOS] [Fixed] - Update usage of UIApplication.sharedApplication in RCTKeyCommands Pull Request resolved: https://github.com/facebook/react-native/pull/34787 Test Plan: Setting `Requires Only App-Extension-Safe-API` to Yes before this change means the app will not compile, after the change it does. Reviewed By: dmytrorykun Differential Revision: D39812410 Pulled By: cipolleschi fbshipit-source-id: 78d185ba20301b10609e4a387f000f0cfda55663