diff --git a/docs/nativecomponentsios.html b/docs/nativecomponentsios.html index cf01518e3e5..ad15bbdbfc5 100644 --- a/docs/nativecomponentsios.html +++ b/docs/nativecomponentsios.html @@ -189,7 +189,7 @@ MapView.propTypes ... };

Styles #

Since all our native react views are subclasses of UIView, most style attributes will work like you would expect out of the box. Some components will want a default style, however, for example UIDatePicker which is a fixed size. This default style is important for the layout algorithm to work as expected, but we also want to be able to override the default style when using the component. DatePickerIOS does this by wrapping the native component in an extra view, which has flexible styling, and using a fixed style (which is generated with constants passed in from native) on the inner native component:

// DatePickerIOS.ios.js -var RCTDatePickerIOSConsts = require('NativeModules').UIManager.RCTDatePicker.Constants; +var RCTDatePickerIOSConsts = require('react-native').NativeModules.UIManager.RCTDatePicker.Constants; ... render: function() { return (