mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-01 22:41:28 +08:00
Summary:Fixes #5408 as per ide and vjeux suggestions here https://github.com/facebook/react-native/issues/529#issuecomment-107328799 Could've been probably done in a single `if` clause, but this is more explicit and leaves potential place for future implementation (if we ever decide to do so) Closes https://github.com/facebook/react-native/pull/7197 Differential Revision: D3217740 Pulled By: vjeux fb-gh-sync-id: aa08a5c42e43c1abe17b72a424ee96146f2667f6 fbshipit-source-id: aa08a5c42e43c1abe17b72a424ee96146f2667f6