Repository navigation
Commit d6d816c
Classify componentNameByReactViewName.h as for-frameworks (#59031)
Summary:
Pull Request resolved: #59031
Move `componentNameByReactViewName.h` from the private tier back to the for-frameworks tier.
The function maps legacy view names to Fabric component names. React Native itself only uses it inside the component registry and the iOS component view factory, and it is transitional, but libraries that integrate with the renderer call it directly; for example, an animation library uses it to resolve the component name for a view in its native module. Under `RN_STRICT_API` a private header is a hard error with no opt-out, so those libraries could not build at all. As for-frameworks, they get a warning that `RN_ALLOW_FRAMEWORKS` silences, and the function stays out of the public API.
Changelog: [Internal]
Differential Revision: D124970095
fbshipit-source-id: 9a510590ce88614603530f5de6f9fdd1760c21d41 parent fc4e706 commit d6d816c
4 files changed
Lines changed: 4 additions & 1 deletion
File tree
- packages/react-native/ReactCommon/react/renderer/componentregistry
- scripts/cxx-api/api-snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
| 786 | + | |
786 | 787 | | |
787 | 788 | | |
788 | 789 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3568 | 3568 | | |
3569 | 3569 | | |
3570 | 3570 | | |
| 3571 | + | |
3571 | 3572 | | |
3572 | 3573 | | |
3573 | 3574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
| |||
0 commit comments