mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-01 13:03:08 +08:00
Summary: In practice, it *MUST* be the call to `self.context` within `setUp` that triggers the creation of the context: - It can't come before that point because `_jscWrapper` has not been set up yet - It can't come after that point since `self.context` would create the context there. Just move the creation to be inline, enforced by assert. This makes it easier to reason about where the context is created, and easier to change how it is created later. Reviewed By: javache Differential Revision: D3529843 fbshipit-source-id: 8ed5a9861ebefd4b9e0f7155db8587dcf0442b7a