react-native/React
Alex Kotliarskyi fd554c31c7 Fix devmenu on iPad
Summary:
This fixes the following problem on iPad (happens when trying to show the devmenu ActionSheet):
> Terminating app due to uncaught exception 'NSGenericException', reason: 'Your application has presented a UIAlertController () of style UIAlertControllerStyleActionSheet. The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover. You must provide location information for this popover through the alert controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem. If this information is not known when you present the alert controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.'

I see 2 ways of fixing the issue: falling back to Alert (always displayed in the center) or adding a fake view somewhere on the screen to display the ActionSheet.

Reviewed By: mmmulani

Differential Revision: D3989672

fbshipit-source-id: 59fabc50ec1aac3ae6ddd7ecf4d8e8e5b9586dba
2016-10-10 12:13:46 -07:00
..
Base Revert "Add multipart response download task" 2016-10-05 09:58:37 -07:00
CSSLayout Introduce CSSAssertSetFailFunc and CSSAsserFail to throw managed exception 2016-10-07 12:43:58 -07:00
Executors Add support for custom JSC across CS 2016-10-07 07:58:46 -07:00
Modules Fix devmenu on iPad 2016-10-10 12:13:46 -07:00
Profiler Apple TV support 1: existing Objective C code should compile for tvOS 2016-09-27 06:28:33 -07:00
React.xcodeproj Revert "Add multipart response download task" 2016-10-05 09:58:37 -07:00
Views Apple TV support 2: Xcode projects and CI (scripts/objc-test.sh) 2016-10-05 07:28:44 -07:00