Commit 3f17c8b
isolate mapbuffer only to components that use it (#44521)
Summary:
Pull Request resolved: #44521
changelog: [internal]
mapbuffer leaks into every component even though it is only used by 2: Paragraph and TextInput. Let's isolate it only to those two.
To do that, I added a new template prop: usesMapBufferForStateData. It is false by default and only Paragraph and TextInput set it to true.
Reviewed By: christophpurrer
Differential Revision: D56636011
fbshipit-source-id: 4a99e6e68caaf40111b6b7b205854a71f33c58641 parent 5c798fa commit 3f17c8b
14 files changed
Lines changed: 29 additions & 190 deletions
File tree
- packages
- react-native-codegen/src/generators/components
- __tests__/__snapshots__
- react-native
- ReactAndroid/src/main/jni/react/runtime/jni
- ReactCommon/react/renderer
- components
- image
- modal
- scrollview
- textinput/platform/android/react/renderer/components/androidtextinput
- text
- view
- core
- tests
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 58 | | |
64 | 59 | | |
65 | 60 | | |
| |||
0 commit comments