React Native Collapsing Toolbar Versions Save

react-native wrapper for android CollapsingToolbarLayout

v1.0.0-beta.9

5 years ago

Update build-tools and gradle version

v1.0.0-beta.8

6 years ago

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

6 years ago

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'