-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow native module loads during react instance init
Summary: ## Context Right now, the ReactInstance construtor eagerly initializes native modules. ## Problem When these modules initialize, they may load other modules. But, all those loads will fail, because the react instance is in the process of being constructed. ## Changes Eagerly initialize modules after the react instance is created. That way, these native module requires work. Changelog: [Internal] Reviewed By: javache Differential Revision: D58537536 fbshipit-source-id: d0e424df708ec35b014f5cecda11e8756e8f4346
- Loading branch information
1 parent
74d030d
commit e78742a
Showing
2 changed files
with
10 additions
and
5 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