px and py utilities not working
#76
Closed
chiroro-jr
started this conversation in
General
Replies: 1 comment 4 replies
-
|
Hi! In CSS, the px-* utilities map to padding-inline: *. While React Native theoretically supports paddingInline, it appears to be unreliable on certain components and platforms. To ensure broader compatibility, we’re converting these to paddingHorizontal instead. This change has already been implemented on the main branch: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I cannot apply padding on an
pxandpyutilities on any elements. I have to use their longer variantspr,pb,pt, andplfor paddings to be applied. I tested the equivalent utilities for margins -mxandmy- those seem to be working.The
p-*utility is also not working for applying paddings uniformly.I didn't want to open an issue in case I am the one doing something wrong.
Am I doing something wrong. Below is an example of what I mean:
Beta Was this translation helpful? Give feedback.
All reactions