mirror of
https://github.com/status-im/react-native.git
synced 2025-02-11 00:46:32 +00:00
c3038d7210
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