Skip to content

Commit efb2a0d

Browse files
authored
update readme
1 parent 9b5b6a5 commit efb2a0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Will return a linear scaled result of the provided size, based on your device's
4747
Sometimes you don't want to scale everything in a linear manner, that's where moderateScale comes in.
4848
The cool thing about it is that you can control the resize factor (default is 0.5).
4949
If normal scale will increase your size by +2X, moderateScale will only increase it by +X, for example:
50-
➡️ scale(10) = 20
51-
➡️ moderateScale(10) = 15
52-
➡️ moderateScale(10, 0.1) = 11
50+
➡️   scale(10) = 20
51+
➡️   moderateScale(10) = 15
52+
➡️   moderateScale(10, 0.1) = 11
5353
* `moderateVerticalScale(size: number, factor?: number)`
5454
Same as moderateScale, but using verticalScale instead of scale.
5555

0 commit comments

Comments
 (0)