mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c54f5cf72a
Summary: This change is not only more correct, it's also fixes the modal in the the next diff. It's more accurate because in the previous location, the redbox dismissal was done as a hack in order to hide non-syntax errors so that the syntax error would be visible when it fired. This is unnecessary for LogBox because it always puts syntax errors on top of any other error. The main motivation for changing this, however, is that this strategy is broken when switching to the Modal component because the Modal component does not work well with quickly unmounting and remounting. With the old strategy, the inspector would flicker and then collapse even though there was a syntax error. Changelog: [Internal] Reviewed By: cpojer, gaearon Differential Revision: D18461431 fbshipit-source-id: e8ed83e3d2b002e5d45cc13dc9533ed841ed5cae