Nativescript-snackbar size/width

plugins

#1

I have implemented the nativescript-snackbar plugin.

While tested with android v4.4.2, Snackbar width is limitable as follows,


Same i have tested with android v6.0, here it is occupying full width of bottom of the screen as follows,

Why this plugin behaves like this in android v4.4.2 devices @bradwaynemartin ?
Is it possible to change the width of snackbar from my side?

Thanks in advance.


#2

The snackbar sizes according to the device size it’s running on. This is how Google/Android control the snackbar. I don’t recall the API so it’s possible there is a method to make it full-screen width on larger devices (tablets) but not sure. If you find it, and want to contribute a PR that would be great.