mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-02 09:21:44 +08:00
Summary: This is revert of revert of https://github.com/facebook/react-native/pull/15542 WITHOUT default RCT_MAIN_THREAD_WATCH_DOG_THRESHOLD value. So, it makes it completly opt-in feature. When code blocks the UI thread for too long, it's a bad sign because this can prevent the app from remaining responsive. This change helps detect such responsiveness issues by warning when a React method executes on the UI thread longer than some threshold. Reviewed By: mmmulani Differential Revision: D5772433 fbshipit-source-id: 24fe4fc0deffe9c091a4bfc4cbd76cb4f34c4091