react-native/React
Nick Lockwood 4c7c365623 Fix background color glitch
Summary:Because the source of truth for backgroundColor is the shadow view, it's possible for the default RCTView backgroundColor to get overwritten by the current shadowView backgroundColor when the view is first created. This overridden value will then be used as the default whenever the background color is reset, which may not be be appropriate for other components that use RCTView.

This diff fixes the bug by ensuring that the view props (and therefore the default color) are set *before* the background color is propagated from the shadowView.

Reviewed By: furdei

Differential Revision: D3064128

fb-gh-sync-id: ac36007c094c7201a5c4fd93399dee4d3eb9a043
shipit-source-id: ac36007c094c7201a5c4fd93399dee4d3eb9a043
2016-03-17 09:40:28 -07:00
..
Base Fix showing RCTPerformanceLogger data 2016-03-17 07:27:27 -07:00
Executors Remove unusued RCTJSCExecutor methods 2016-03-16 10:23:20 -07:00
Layout Backed out changeset 14a8c290bb874ab3e954b45f6fb29d71d019adc2. 2016-03-16 08:53:25 -07:00
Modules Fix background color glitch 2016-03-17 09:40:28 -07:00
Profiler Fix showing RCTPerformanceLogger data 2016-03-17 07:27:27 -07:00
React.xcodeproj Fix OSS iOS build 2016-02-17 07:38:33 -08:00
Views Add debug tool to get shadowView from UIView 2016-03-16 10:18:22 -07:00