Fix action sheet callback invoked more than once on iPad (#33099)
Fix action sheet callback invoked more than once on iPad (#33099)

Summary:
iOS will sometimes invoke the UIAlertAction handler for the cancel button more than once on iPad. This can be reproduced relatively easily by having a button that opens an action sheet and spam tapping outside the action sheet while it is opening. Since native module callbacks can only be invoked once this causes the app to crash here https://github.com/facebook/react-native/blob/main/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModule.mm#L206.

## Changelog

[iOS] [Fixed] - Fix action sheet callback invoked more than once on iPad

Pull Request resolved: https://github.com/facebook/react-native/pull/33099

Test Plan: Tested on iPad simulator to reproduce the crash and verified that this fixes it.

Reviewed By: philIip

Differential Revision: D34215327

Pulled By: ShikaSD

fbshipit-source-id: 6f406e4df737a57e6dd702dd54260aa72eab31d6

janicduplessis/react-native,facebook/react-native,janicduplessis/react-native,facebook/react-native,facebook/react-native,javache/react-native,janicduplessis/react-native,facebook/react-native,javache/react-native,facebook/react-native,javache/react-native,facebook/react-native,facebook/react-native,janicduplessis/react-native,janicduplessis/react-native,javache/react-native,javache/react-native,facebook/react-native,janicduplessis/react-native,janicduplessis/react-native,facebook/react-native,javache/react-native,javache/react-native,javache/react-native,janicduplessis/react-native,javache/react-native