From 0b904b6002a23e0eb208b044fc014f42af0c13d0 Mon Sep 17 00:00:00 2001
From: Travis CI
Date: Thu, 8 Oct 2015 21:14:12 +0000
Subject: [PATCH] update website
---
docs/drawerlayoutandroid.html | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
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