Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

let top/right/bottom/left work with $scale #178

Open
HenryDF2022 opened this issue Jan 5, 2023 · 0 comments
Open

let top/right/bottom/left work with $scale #178

HenryDF2022 opened this issue Jan 5, 2023 · 0 comments

Comments

@HenryDF2022
Copy link

Hi! 馃憢

Firstly, thanks for your work on this project! 馃檪

Today I used patch-package to patch react-native-extended-stylesheet@0.12.0 for the project I'm working on.

I use $scale to build my responsive app. But, left/right/top/bottom are out of control.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-extended-stylesheet/src/replacers/scale.js b/node_modules/react-native-extended-stylesheet/src/replacers/scale.js
index 8660c18..844ac15 100644
--- a/node_modules/react-native-extended-stylesheet/src/replacers/scale.js
+++ b/node_modules/react-native-extended-stylesheet/src/replacers/scale.js
@@ -9,6 +9,10 @@ const SCALABLE_PROPS = [
   'padding',
   'fontsize',
   'radius',
+  'top',
+  'bottom',
+  'left',
+  'right',
 ];
 
 export default {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant