Skip to content

Releases: cesardeazevedo/react-native-collapsing-toolbar

v1.0.0-beta.9

16 Jul 12:13
Compare
Choose a tag to compare

Update build-tools and gradle version

v1.0.0-beta.8

29 Jan 05:49
Compare
Choose a tag to compare

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 }} />
    ...
  )
}

v1.0.0-beta.7

17 Oct 13:44
Compare
Choose a tag to compare

We are not exposing react-native-nested-scroll-view anymore, now you should install it separately.

npm install --save react-native-nested-scroll-view

before:

import {
  AppBarLayout,
  CoordinatorLayout,
  CollapsingToolbarLayout,
  CollapsingParallax,
  NestedScrollView,
} from 'react-native-collapsing-toolbar'

after:

import {
  AppBarLayout,
  CoordinatorLayout,
  CollapsingToolbarLayout,
  CollapsingParallax,
} from 'react-native-collapsing-toolbar'

import NestedScrollView from 'react-native-nested-scroll-view'