Kyle Corbitt
299cd4cd01
Fix empty ScrollView warnings
...
Summary:Currently, an empty `<ScrollView />` on iOS always throws the warning "Sticky header index 0 was outside the range {0, 0}".
This is because the error-reporting code relies on the assumption that `stickyHeaderIndices` exists, and when it doesn't the error check thinks there's an index when there really isn't.
Note that this only changes error reporting and won't affect apps out of debug mode.
**Test plan**
I created a sample app and included an empty `<ScrollView />`. Without this change the "Sticky header..." warning was displayed on every run through. With this change implemented, the warning went away.
Closes https://github.com/facebook/react-native/pull/6417
Differential Revision: D3042178
Pulled By: nicklockwood
fb-gh-sync-id: 7afefd428a5fcb03867bcb69e46c46fe1ae9151e
shipit-source-id: 7afefd428a5fcb03867bcb69e46c46fe1ae9151e
2016-03-11 12:24:22 -08:00
..
2015-04-26 02:17:13 -08:00
2015-08-17 08:46:00 -07:00
2015-06-25 09:17:01 -08:00
2015-09-04 07:00:21 -08:00
2015-12-23 10:07:28 -08:00
2016-01-07 12:03:17 -08:00
2015-12-01 09:00:28 -08:00
2015-11-27 04:03:42 -08:00
2016-02-26 08:18:34 -08:00
2016-03-09 08:56:46 -08:00
2015-06-25 09:15:21 -08:00
2015-06-25 09:15:21 -08:00
2015-12-17 06:46:33 -08:00
2016-01-04 06:38:30 -08:00
2015-09-02 06:11:24 -08:00
2015-09-02 06:11:24 -08:00
2015-06-05 09:58:25 -08:00
2015-11-14 10:28:28 -08:00
2015-10-08 11:56:25 -07:00
2016-01-29 06:26:30 -08:00
2016-02-03 11:36:36 -08:00
2016-01-04 06:38:30 -08:00
2015-11-26 08:54:16 -08:00
2015-03-26 02:42:24 -08:00
2016-03-10 10:21:34 -08:00
2015-11-26 08:54:16 -08:00
2015-11-26 08:54:16 -08:00
2016-03-03 12:43:36 -08:00
2016-03-03 12:43:36 -08:00
2015-07-28 07:21:50 -08:00
2016-02-25 09:52:30 -08:00
2015-08-14 04:47:12 -08:00
2016-03-03 12:43:36 -08:00
2015-08-14 01:57:18 -08:00
2016-01-22 17:27:32 -08:00
2015-03-26 02:42:24 -08:00
2015-11-14 10:28:28 -08:00
2015-12-08 03:32:30 -08:00
2015-12-08 03:32:30 -08:00
2015-03-26 02:42:24 -08:00
2015-12-08 03:32:30 -08:00
2015-12-08 07:48:26 -08:00
2015-12-08 07:48:26 -08:00
2015-03-26 02:42:24 -08:00
2015-12-10 10:12:29 -08:00
2015-03-26 02:42:24 -08:00
2015-06-03 09:49:35 -08:00
2015-11-14 10:28:28 -08:00
2016-01-04 08:00:29 -08:00
2016-03-08 04:00:34 -08:00
2016-01-04 08:00:29 -08:00
2016-01-04 08:00:29 -08:00
2015-11-25 04:12:34 -08:00
2015-11-19 11:15:48 -08:00
2016-03-11 12:24:22 -08:00
2015-11-25 04:12:34 -08:00
2016-03-10 10:21:34 -08:00
2015-11-03 14:49:30 -08:00
2015-11-03 14:49:30 -08:00
2015-04-29 08:08:45 -08:00
2015-12-10 10:12:29 -08:00
2016-03-01 10:14:32 -08:00
2016-03-01 10:14:32 -08:00
2015-12-21 10:30:39 -08:00
2015-12-21 10:30:39 -08:00
2015-03-26 02:42:24 -08:00
2015-12-21 10:30:39 -08:00
2015-09-02 06:11:24 -08:00
2015-03-26 02:42:24 -08:00
2015-03-26 02:42:24 -08:00
2015-09-02 06:11:24 -08:00
2015-09-02 06:11:24 -08:00
2015-11-05 09:39:30 -08:00
2015-12-08 03:32:30 -08:00
2015-12-08 03:32:30 -08:00
2015-03-26 02:42:24 -08:00
2015-12-08 03:32:30 -08:00
2015-03-26 02:42:24 -08:00
2015-09-02 06:11:24 -08:00
2015-07-07 06:15:20 -08:00
2016-02-16 16:51:39 -08:00
2016-02-16 16:51:39 -08:00
2015-03-26 02:42:24 -08:00
2015-12-21 10:18:47 -08:00
2016-03-07 09:31:26 -08:00
2016-02-26 08:20:34 -08:00
2016-03-10 10:21:34 -08:00
2015-03-26 02:42:24 -08:00
2016-03-10 10:21:34 -08:00
2015-09-02 06:11:24 -08:00
2015-09-04 07:00:21 -08:00
2015-08-13 07:56:41 -08:00
2015-11-14 10:28:28 -08:00
2016-01-15 05:15:31 -08:00