react-native/Libraries/ActionSheetIOS
Ullrich Schäfer ac39795948 Fixing ActionSheetIOS position after rotation on tablet (#22738)
Summary:
There's been a bug on iOS and iPad that the position of an action sheet using UIActionController isn't updated if the position of its anchor view changes due to rotating the device. A common scenario would be, presenting an action sheet from a right bar button item. Rotating the device will most likely change the bar button's X coordinate. The action sheets arrow would still point to the old position due to how it has been implemented so far.

I used also reduced some code duplication between `-showActionSheetWithOptions` and `-showShareActionSheetWithOptions:` while at it.

Changelog:
----------

[iOS] [Fixed] - Action Sheet position after rotation on tablet
Pull Request resolved: https://github.com/facebook/react-native/pull/22738

Differential Revision: D13582810

Pulled By: PeteTheHeat

fbshipit-source-id: a93065284b02efc41ae7378465521330a828a126
2019-01-04 13:09:00 -08:00
..
RCTActionSheet.xcodeproj Update Xcode projects (#19574) 2018-06-19 23:48:12 -07:00
ActionSheetIOS.js Use `invariant` instead of `fbjs/lib/invariant` 2018-12-03 00:07:02 -08:00
RCTActionSheetManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTActionSheetManager.m Fixing ActionSheetIOS position after rotation on tablet (#22738) 2019-01-04 13:09:00 -08:00