Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sidevesh/snackbar-and-fab-demo

A demo of react-native-snackbar-component and react-native-fab working together!
https://github.com/sidevesh/snackbar-and-fab-demo

demo example fab floating-action-button floatingactionbutton react-native-fab react-native-snackbar-component snackbar

Last synced: 3 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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.