-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Drawer): finish overlay mode && add drawer in right position
- Loading branch information
1 parent
d955cc5
commit c46d956
Showing
7 changed files
with
218 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<a name="0.0.1"></a> | ||
## 0.0.1 (2017-02-16) | ||
|
||
|
||
### Features | ||
|
||
* **Drawer/:** finish 'default' drawer in 'left' position ([750034c](https://github.com/Tinysymphony/react-native-drawer-xg/commit/750034c)) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,39 @@ | ||
## react-native-drawer-menu | ||
## react-native-drawer-menu [![Build Status](https://travis-ci.org/Tinysymphony/react-native-drawer-menu.svg?branch=master)](https://travis-ci.org/Tinysymphony/react-native-drawer-menu) | ||
|
||
A drawer component for React Native Application `ios`/`android` | ||
A drawer component for React Native Application (ios / android) | ||
|
||
### Usage | ||
|
||
```shell | ||
npm install --save react-native-drawer-menu | ||
``` | ||
|
||
``` jsx | ||
import Drawer from 'react-native-drawer-menu'; | ||
|
||
// in render function | ||
render() { | ||
var drawerContent = (<View style={styles.drawerContent}> | ||
<View style={styles.leftTop}/> | ||
<View style={styles.leftBottom}> | ||
<View><Text>Drawer Content</Text></View> | ||
</View> | ||
</View>); | ||
return ( | ||
<Drawer | ||
style={styles.container} | ||
drawerWidth={300} | ||
drawerContent={drawerContent} | ||
type={Drawer.types.Overlay} | ||
customStyles={{drawer: styles.drawer}} | ||
drawerPosition={Drawer.positions.Right} | ||
> | ||
<View style={styles.content}> | ||
<Text>{Object.values(Drawer.positions).join(' ')}</Text> | ||
<Text>{Object.values(Drawer.types).join(' ')}</Text> | ||
</View> | ||
</Drawer> | ||
); | ||
} | ||
|
||
``` |
Oops, something went wrong.