Commit a261ef6
authored
fix: text break strategy - layout calculation - android (#218)
Fixes issue when component height is calculated incorrectly because of
text breaking behavior.
This PR ensures that breaking strategy used for displaying text and
calculating height is consistent. Additionally, starting from now we use
`BREAK_STRATEGY_HIGH_QUALITY` which is consistent with default React
Native Android behavior
[Before](https://github.com/user-attachments/assets/df328108-e2a3-40c8-b8a8-66905662f827)
[After](https://github.com/user-attachments/assets/7ff84bc0-22d6-41ad-bf72-61f7642cbf41)1 parent c4a79f1 commit a261ef6
File tree
2 files changed
+17
-2
lines changed- android/src/main/java/com/swmansion/enriched
2 files changed
+17
-2
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
| |||
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
59 | 69 | | |
60 | 70 | | |
61 | 71 | | |
| |||
0 commit comments