Skip to content

Commit 9b5b6a5

Browse files
authored
update readme
1 parent 7493986 commit 9b5b6a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ yarn add react-native-size-matters
2222
When developing with react-native, you need to manually adjust your app to look great on a variety of different screen sizes. That's a tedious job.
2323
react-native-size-matters provides some simple tooling to make your scaling a whole lot easier.
2424
The idea is to develop once on a standard ~5" screen mobile device and then simply apply the provided utils.
25-
📖 You can read more about what led to this library on my blog post, which can be found in [this repo](./examples/BlogPost) or at [Medium](https://medium.com/soluto-engineering/size-matters-5aeeb462900a).
25+
📖  You can read more about what led to this library on my blog post, which can be found in [this repo](./examples/BlogPost) or at [Medium](https://medium.com/soluto-engineering/size-matters-5aeeb462900a).
2626

2727
## API
2828
### Scaling Functions
@@ -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)