GeekyAnts / GeekyAnts/NativeBase

Overriding breakpoints or adding new ones breaks useBreakpointsValue

Open
#4,764 4 comments 0 reactions 0 assignees View on GitHub
bug stale triage v3
Dominant language
TypeScript
Stars
20.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

### Description

Adding custom breakpoints causes wrong results from the useBreakpointValue hook

### CodeSandbox/Snack link

https://snack.expo.dev/pir0Noo21

### Steps to reproduce

1. Open the provided snack
2. Make sure to open the web version on a separate window
3. Resize the window, specially to smaller sizes, around 400 px
4. There's a point where the column flex dir changes to row

### NativeBase Version

3.3.4

### Platform

- [ ] Android
- [ ] CRA
- [X] Expo
- [ ] iOS
- [ ] Next

### Other Platform

web

### Additional Information

This issue did not occur in 3.2.2, you can change the version on the package.json and repeat the steps and it works as expected

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.