v1.0.0-beta.6
Pre-release
Pre-release
cesardeazevedo
released this
14 Jun 18:32
·
28 commits
to master
since this release
NestedScrollView is now on different package, it was a huge codebase dependency, and it was not required to work with the bottom sheet, also a little bit hard to maintain, it is only useful when you are NOT using the anchor point.
See the repository: https://github.com/cesardeazevedo/react-native-nested-scroll-view
If you are using the NestedScrollView, you should now attach it on the componentDidMount
as follows.
import NestedScrollView from 'react-native-nested-scroll-view'
class App extends Component {
componentDidMount() {
this.bottomSheet.attachNestedScrollChild(this.nestedScroll)
}
render() {
return (
<CoordinatorLayout>
<BottomSheetBehavior ref={ref => { this.bottomSheet = ref}}>
<NestedScrollView ref={ref => { this.nestedScroll = ref }} />
</BottomSheetBehavior>
</CoordinatorLayout>
)
}
}
See the NestedScrollView example for better details. https://github.com/cesardeazevedo/react-native-bottom-sheet-behavior/blob/master/example/views/NestedScrollView.js