Skip to content

v1.0.0-beta.8

Compare
Choose a tag to compare
@cesardeazevedo cesardeazevedo released this 29 Jan 05:49
· 17 commits to master since this release

This release fixes most of the problems that we had (#4, gif, and this).

Thanks to @binhnd-socicom to make this possible.

New methods on AppBarLayout

this.appBar.show() => Expands the toolbar
this.appBar.hide() => Collapses the toolbar
this.appBar.redraw() => Redraw the toolbar (invokes requestLayout)

Example

componentDidMount() {
  this.appBar.show()
  this.appBar.hide()
  this.appBar.redraw()
}

render() {
  return (
    ...
    <AppBarLayout ref={(ref) => { this.appBar = ref }} />
    ...
  )
}