You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-21Lines changed: 19 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,16 @@ Measure text accurately before laying it out and get font information from your
7
7
8
8
The text to be measured is required, the rest of the parameters supported are optional and work in the same way as with React Native:
9
9
10
-
-Font family, with the common name or specific filename for Android or font-name for iOS.
11
-
-Font size
12
-
-Font weight
13
-
-Font style
14
-
-Font variant (iOS)
15
-
-Include font padding (Android)
16
-
-Text break strategy (Android)
17
-
-Letter spacing
18
-
-Allow font scaling
19
-
-Maximum width, for automatic line-break based on text-break strategy.
10
+
-`fontFamily`
11
+
-`fontSize`
12
+
-`fontWeight`
13
+
-`fontStyle`
14
+
-`fontVariant` (iOS)
15
+
-`includeFontPadding` (Android)
16
+
-`textBreakStrategy` (Android)
17
+
-`letterSpacing`
18
+
-`allowFontScaling`
19
+
-`width`: Constraint for automatic line-break based on text-break strategy.
20
20
21
21
There are two main functions, one to obtain the height of different blocks of text simultaneously, optimized for components such as `<FlatList>`.
22
22
@@ -36,23 +36,21 @@ rnTextSize is WIP, but if it has helped you, please support my work with a star
36
36
---
37
37
**IMPORTANT:**
38
38
39
-
**rnTextSize (react-native-text-size) v2.0 is a complete refactoring, before using it, please uninstall the previous version.**
39
+
**rnTextSize (react-native-text-size) v2.0 is a complete refactoring, before using it, please unlink the previous version.**
40
+
41
+
**If `react-native unlink` fails, it reverses the changes described in [Manual Installation](https://github.com/aMarCruz/react-native-text-size/wiki/Manual-Installation).**
40
42
41
43
---
42
44
43
45
**Requirements:**
44
46
45
47
- React Native v0.52.0 or later
46
-
- Targets Androind API 16 and iOS 9.0
47
-
48
-
The [sample App](https://github.com/aMarCruz/rn-text-size-sample-app) uses RN v0.52.0, which is the minimum version supported by rnTextSize, but you can change it (See your README before testing it).
48
+
- Targets Android API 16 and iOS 9.0
49
49
50
-
To take advantage of features such as `letterSpacing`, and better support for the most modern devices, use RN v0.55 or above.
50
+
The [sample App](https://github.com/aMarCruz/rn-text-size-sample-app) uses RN v0.52.0, which is the minimum version supported by rnTextSize but, to take advantage of features such as `letterSpacing` and better support for the most modern devices, use RN v0.55 or above.
0 commit comments