GeekyAnts / GeekyAnts/NativeBase

Box height not working as expected

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

Description

### Description

When I apply different height values to Box element it behaves in a strange manner

### CodeSandbox/Snack link

https://snack.expo.dev/@aki96/787df4

### Steps to reproduce

Try doing the same thing as in the video I will attach.
When I assign value to h or height it behaves differently than when same thing is done through styles property.
I might be missing something and this is not a bug. But if is it would be nice to solve it as it currently making me use Dimensions API to assign height to my component.

https://user-images.githubusercontent.com/116439489/230606557-293cbbd0-159b-4b27-9baa-b2e95f6a18d3.mov

### NativeBase Version

^3.4.28

### Platform

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

### Other Platform

_No response_

### Additional Information

_No response_

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.