Skip to content

Commit

Permalink
this.drawer is undefined,fixed by this.refs
Browse files Browse the repository at this point in the history
fixed to this.refs[DRAWER_REF]
  • Loading branch information
binggg committed Oct 15, 2015
1 parent 8a36800 commit 32c2c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MainScreen.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var MainScreen = React.createClass({
titleColor="white"
style={styles.toolbar}
actions={toolbarActions}
onIconClicked={() => this.drawer.openDrawer()}
onIconClicked={() => this.refs[DRAWER_REF].openDrawer()}
onActionSelected={this.onActionSelected} />
<SwipeRefreshLayoutAndroid
ref={(swipeRefreshLayout) => { this.swipeRefreshLayout = swipeRefreshLayout; }}
Expand Down

0 comments on commit 32c2c9e

Please sign in to comment.