react-native/React
Shruti Malugu edbb48c67a Replacing all instances of [UIApplication sharedApplication] wi…
Summary:
…th RCTSharedApplication()

Thanks for submitting a PR! Please read these instructions carefully:

- [ ] Explain the **motivation** for making this change.
          Using React Native latest version with Cocoapods 1.2.0 causes the following error inside iOS app extensions

> /react-native/React/Modules/RCTAccessibilityManager.m:67:70: ‘sharedApplication’ is unavailable: not available on iOS (App Extension) — Use view controller based solutions where appropriate instead.

Moving the use of [UIApplication sharedApplication] to RCTSharedApplication() which is safe on app extension

- [ ] Provide a **test plan** demonstrating that the code is solid.
        I am not sure how to test such that all the features which touch the modified code are tested.

- [ ] Match the **code formatting** of the rest of the codebase.
- [ ] Target the `master` branch, NOT a "stable" branch.

What existing problem does the pull request solve?
    Using React Native latest v
Closes https://github.com/facebook/react-native/pull/13227

Differential Revision: D4816338

Pulled By: javache

fbshipit-source-id: e3e3c77882990ad1817b0b633521cff52571ecd0
2017-04-01 03:34:41 -07:00
..
Base Replacing all instances of [UIApplication sharedApplication] wi… 2017-04-01 03:34:41 -07:00
CxxBridge Move bindKeys to RCTBridge setUp 2017-03-31 05:31:26 -07:00
CxxModule Extract module registry creation to helper 2017-03-17 07:08:14 -07:00
CxxUtils Move RCTFollyConvert to the correct namespace 2017-02-16 06:59:27 -08:00
DevSupport Fix warnings in React.xcodeproj 2017-03-23 11:36:17 -07:00
Executors Tease apart React and RCTBatchedBridge targets 2017-03-21 18:31:23 -07:00
Modules Replacing all instances of [UIApplication sharedApplication] wi… 2017-04-01 03:34:41 -07:00
Profiler Replacing all instances of [UIApplication sharedApplication] wi… 2017-04-01 03:34:41 -07:00
React.xcodeproj Enable -Wimplicit-retain-self en sync warning config for all projects 2017-03-23 15:01:34 -07:00
ReactCxx.xcodeproj Fix cxx bridge headers when archiving 2017-03-28 06:45:56 -07:00
Views Replacing all instances of [UIApplication sharedApplication] wi… 2017-04-01 03:34:41 -07:00
folly.xcconfig Update Boost dependency to 1.63 on iOS 2017-03-10 05:45:28 -08:00