grapp-dev / stacks

A set of components for building layouts in React Native. Powered by React Native Unistyles.
https://stacks.grapp.dev
MIT License
985 stars 24 forks source link

useCurrentBreakpoint() #29

Closed imariic closed 3 years ago

imariic commented 3 years ago

Hello, and thank you for making this library :)

Yesterday I started using it and I realized that useCurrentBreakpoint() hook doesn't work properly on iPads. The hook as a value returns "mobile" instead of "tablet". On Android tablet the hook works as expected.

Kind regards!

mobily commented 3 years ago

@imariic 👋 what iPad do you use? since it depends on the screen resolution, you probably need to overwrite the default breakpoints value (StacksProvider, https://mobily.github.io/stacks/docs/other/stacks-provider/#breakpoints)

mobily commented 3 years ago

closing due to inactivity