Releases: cesardeazevedo/react-native-collapsing-toolbar
Releases · cesardeazevedo/react-native-collapsing-toolbar
v1.0.0-beta.9
Update build-tools and gradle version
v1.0.0-beta.8
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
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'