-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix LazilyLoadView lookup so that it can drop RCT prefixes.
Summary: While debugging internally, we have found that modules are almost always registered with their "RK" or "RCT" prefixes dropped. However, if a view is named `RCTFooView` and needs `RCTFooViewManager` to render natively, it will almost never find it because `RCT` was dropped from the key to the ViewManager instance. In the event you look for a `ViewManager` and don't find it, this strips any "React" prefixes from your key and tries ones more time. Reviewed By: spredolac Differential Revision: D10734005 fbshipit-source-id: 2bfa6f19830f14f09af2fe7dc7e44b7e26e0ac3f
- Loading branch information
1 parent
1b4fd64
commit 6534718
Showing
4 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters