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
..
2016-06-27 17:13:27 -07:00
2016-06-27 17:13:27 -07:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2015-06-25 09:17:01 -08:00
2015-09-04 07:00:21 -08:00
2016-11-23 07:58:39 -08:00
2016-01-07 12:03:17 -08:00
2015-12-01 09:00:28 -08:00
2016-08-10 13:13:34 -07:00
2016-11-23 07:58:39 -08:00
2017-02-20 05:15:25 -08:00
2016-11-23 07:58:39 -08:00
2015-06-25 09:15:21 -08:00
2016-11-23 07:58:39 -08:00
2016-01-04 06:38:30 -08:00
2017-01-26 18:28:53 -08:00
2017-01-28 12:43:30 -08:00
2015-09-02 06:11:24 -08:00
2015-09-02 06:11:24 -08:00
2016-11-23 07:58:39 -08:00
2016-04-26 04:21:39 -07:00
2016-11-23 07:58:39 -08:00
2016-11-07 17:14:02 -08:00
2016-11-23 07:58:39 -08:00
2016-07-07 12:44:14 -07:00
2016-07-12 05:59:12 -07:00
2015-11-26 08:54:16 -08:00
2016-11-23 07:58:39 -08:00
2017-01-09 19:28:27 -08:00
2015-11-26 08:54:16 -08:00
2015-11-26 08:54:16 -08:00
2016-11-23 07:58:39 -08:00
2017-02-06 11:01:11 -08:00
2016-09-27 06:28:33 -07:00
2016-10-05 07:28:44 -07:00
2016-11-23 07:58:39 -08:00
2017-02-01 13:13:27 -08:00
2016-11-23 07:58:39 -08:00
2016-11-18 14:43:31 -08:00
2016-11-23 07:58:39 -08:00
2016-05-06 03:18:20 -07:00
2016-11-23 07:58:39 -08:00
2016-09-08 17:58:50 -07:00
2016-11-23 07:58:39 -08:00
2016-09-08 17:58:50 -07:00
2016-11-23 07:58:39 -08:00
2016-12-03 18:58:29 -08:00
2016-11-23 07:58:39 -08:00
2016-08-05 12:44:21 -07:00
2016-11-23 07:58:39 -08:00
2016-09-27 06:28:33 -07:00
2016-11-23 07:58:39 -08:00
2017-02-17 15:16:01 -08:00
2016-11-23 07:58:39 -08:00
2016-04-16 15:15:25 -07:00
2017-02-19 23:19:47 -08:00
2017-02-21 08:45:05 -08:00
2017-01-27 10:13:29 -08:00
2017-02-02 09:58:30 -08:00
2017-02-02 09:58:30 -08:00
2017-02-02 09:58:30 -08:00
2017-02-02 09:58:30 -08:00
2016-11-23 07:58:39 -08:00
2017-02-03 15:28:34 -08:00
2016-11-23 07:58:39 -08:00
2017-01-27 10:13:29 -08:00
2016-11-23 07:58:39 -08:00
2015-11-03 14:49:30 -08:00
2016-11-23 07:58:39 -08:00
2016-04-26 04:21:39 -07:00
2017-02-21 08:45:05 -08:00
2017-02-21 08:45:05 -08:00
2016-11-23 07:58:39 -08:00
2017-02-19 18:33:49 -08:00
2016-11-23 07:58:39 -08:00
2015-12-21 10:30:39 -08:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2015-09-02 06:11:24 -08:00
2016-05-03 05:40:29 -07:00
2016-12-19 06:28:40 -08:00
2017-02-15 02:17:17 -08:00
2017-02-22 12:04:10 -08:00
2016-11-23 07:58:39 -08:00
2016-12-19 06:28:40 -08:00
2016-11-23 07:58:39 -08:00
2016-11-29 12:28:55 -08:00
2015-07-07 06:15:20 -08:00
2016-12-19 06:28:40 -08:00
2017-01-26 09:43:32 -08:00
2017-02-02 09:58:30 -08:00
2017-02-22 11:16:13 -08:00
2016-11-23 07:58:39 -08:00
2017-02-07 14:02:20 -08:00
2017-01-06 20:29:02 -08:00
2017-01-06 20:29:02 -08:00
2016-11-23 07:58:39 -08:00
2017-01-06 20:29:02 -08:00
2016-11-23 07:58:39 -08:00
2016-09-27 06:28:33 -07:00
2016-11-18 14:43:31 -08:00
2017-02-02 09:58:30 -08:00
2017-02-03 15:28:34 -08:00