Aaron Connolly 67b138e77c Added a small note about an issue I ran into vending a simple `UIView?
Summary:?` instance to React Native. The layout system suppressed the values for `frame` and `backgroundColor` on my simple view and it wasn't clear why. After some debugging and hacking it became apparent that React Native needed to adjust those properties during layout. The workaround I found was to wrap my custom `UIView` in another `UIView` instance.

**Motivation**

When attempting to bridge a simple 100x100 red background `UIView` to ReactNative I could not get the view to show up as a `RCTView`. The view was there, but it was not 100x100 and it didn't have a red background. After a couple hours of poking around and debugging the call stacks on `setBackgroundColor` and `setFrame` it became apparent that React Native calls those messages on your `UIView` and sends new values. This is likely because of the layout system React Native uses.

I was encouraged to provide a small comment in the documentation if I thought others might find it useful. This PR is an attempt to provide a note in the documentation
Closes https://github.com/facebook/react-native/pull/6786

Differential Revision: D3133093

fb-gh-sync-id: 77d895f2f8e09978d283ee9e3193ee68cc5a7cb8
fbshipit-source-id: 77d895f2f8e09978d283ee9e3193ee68cc5a7cb8
2016-04-04 04:36:19 -07:00
..
2016-02-08 04:04:38 -08:00
2016-02-15 14:55:36 -08:00
2016-03-17 08:29:25 -07:00
2016-03-06 11:13:26 -08:00
2016-03-06 02:07:23 -08:00
2016-03-20 17:27:26 -07:00
2016-03-02 04:36:33 -08:00
2016-03-24 14:11:30 -07:00
2015-03-25 11:52:29 -07:00
2015-12-11 15:22:57 +01:00
2016-03-26 05:42:26 -07:00
2016-02-23 09:01:31 -08:00
2016-03-24 14:11:30 -07:00