react-native/React
Benoit VALLON ca2741609a Fix badgeColor for previous iOS 10 versions
Summary:
The actual badgeColor prop causes the following error when run on device with a version inferior to iOS 10 like iPad 2 and iPad mini 1.

`*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITabBarItem setBadgeColor:]: unrecognized selector sent to instance 0x7968be80'`

This PR fixes it by checking at runtime if the selector is available for the current running version.

It also makes the color available at start by using the variable `self.barItem`. Currently, the color appears only after a reload.
Closes https://github.com/facebook/react-native/pull/12354

Differential Revision: D4598036

Pulled By: shergin

fbshipit-source-id: 9f104fc27db51213a54273e33c5a22f1b350c55e
2017-02-22 12:04:10 -08:00
..
Base Simplifying Struct definition. 2017-02-20 04:30:19 -08:00
CxxBridge Create NSDataBigString 2017-02-20 05:00:58 -08:00
CxxModule Move some utilities to RCTCxxUtils 2017-02-16 14:02:03 -08:00
CxxUtils Move RCTFollyConvert to the correct namespace 2017-02-16 06:59:27 -08:00
Executors Simplifying Struct definition. 2017-02-20 04:30:19 -08:00
Modules Simplifying mess with RCTRootViewSizeFlexibility 2017-02-19 23:19:47 -08:00
Profiler Enable perf monitor for CxxBridge 2017-02-09 12:47:04 -08:00
React.xcodeproj Splitting `RCTRootView.m`, decoupling RCTRootContentView 2017-02-19 23:19:47 -08:00
ReactCxx.xcodeproj Create NSDataBigString 2017-02-20 05:00:58 -08:00
Views Fix badgeColor for previous iOS 10 versions 2017-02-22 12:04:10 -08:00
folly.xcconfig Fork React.xcodeproj to build the C++ bridge 2017-02-01 14:14:32 -08:00