diff --git a/docs/drawerlayoutandroid.html b/docs/drawerlayoutandroid.html
index 479d96b08bf..0c17bd2a07b 100644
--- a/docs/drawerlayoutandroid.html
+++ b/docs/drawerlayoutandroid.html
@@ -5,15 +5,19 @@ view is initially not visible on the screen, but can be pulled in from the
side of the window specified by the drawerPosition prop and its width can
be set by the drawerWidth prop.
Example:
render: function() {
var navigationView = (
- <Text style={{margin: 10, fontSize: 15, textAlign: 'left'}}>I'm in the Drawer!</Text>
+ <View style={{flex: 1, backgroundColor: '#fff'}}>
+ <Text style={{margin: 10, fontSize: 15, textAlign: 'left'}}>I'm in the Drawer!</Text>
+ </View>
);
return (
<DrawerLayoutAndroid
drawerWidth={300}
drawerPosition={DrawerLayoutAndroid.positions.Left}
renderNavigationView={() => navigationView}>
- <Text style={{margin: 10, fontSize: 15, textAlign: 'right'}}>Hello</Text>
- <Text style={{margin: 10, fontSize: 15, textAlign: 'right'}}>World!</Text>
+ <View style={{flex: 1, alignItems: 'center'}}>
+ <Text style={{margin: 10, fontSize: 15, textAlign: 'right'}}>Hello</Text>
+ <Text style={{margin: 10, fontSize: 15, textAlign: 'right'}}>World!</Text>
+ </View>
</DrawerLayoutAndroid>
);
},
drawerPosition enum(DrawerConsts.DrawerPosition.Left, DrawerConsts.DrawerPosition.Right) #
Specifies the side of the screen from which the drawer will slide in.
drawerWidth number #
Specifies the width of the drawer, more precisely the width of the view that be pulled in