Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 553 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 553 Bytes

snackbar-and-fab-demo

A demo of react-native-snackbar-component and react-native-fab working together!

Whenever the snackbar updates, either when it moves in or out or maybe the content changes increasing or decreasing its height, the snackbar wil call the function given as distanceCallback prop with the new height taken by it as argument. Use this to update the distanceOffset value at state or store.

Supply this value to fab as snackOffset prop, and now the fab will move itself if snackbar moves.

See index.android.js for working example.