Commit 267fcf8
authored
fix: building RN 0.79 and RN 0.80 - android (#377)
# Summary
- fixes incorrect import for RN < 0.81
- fixes issue with serializing component props that affects initial
input size measurements. Keep in mind, on RN 0.79 and RN 0.80 this might
not work as precise as on newer versions, as we don't take into
consideration `htmlStyle` - this is fine as RN 0.79 and RN 0.80 is no
longer supported. We should officially drop support for them in the
future and remove this code.
- fixes:
#369
## Test Plan
Provide **clear steps so another contributor can reproduce the behavior
or verify the feature works**.
For example:
- Verify that app builds properly on RN 0.79
- Verify that app builds properly on RN 080
- Verify that app builds properly on RN 0.83
- Verify that on all of this versions initial component measurement is
working correctly
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ❌ |
| Android | ✅ |1 parent 7662544 commit 267fcf8
File tree
2 files changed
+27
-1
lines changed- android/src/main/new_arch
- react/renderer/components/RNEnrichedTextInputViewSpec
2 files changed
+27
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
24 | 44 | | |
25 | 45 | | |
26 | 46 | | |
0 commit comments