mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 20:01:01 +08:00
Capture StackOverflowExceptions triggered when drawing a ReactViewGroup or ReactRootView
Reviewed By: achen1 Differential Revision: D6653395 fbshipit-source-id: 849b1a2ed6ab9bc057414d451e97a673178c30dd
This commit is contained in:
committed by
Facebook Github Bot
parent
877f1cde2e
commit
1aac962378
@@ -19,4 +19,8 @@ public class IllegalViewOperationException extends JSApplicationCausedNativeExce
|
||||
public IllegalViewOperationException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
public IllegalViewOperationException(String msg, Throwable cause) {
|
||||
super(msg, cause);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,4 +21,6 @@ public interface RootView {
|
||||
* from the child's onTouchIntercepted implementation.
|
||||
*/
|
||||
void onChildStartedNativeGesture(MotionEvent androidEvent);
|
||||
|
||||
void handleException(Exception e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user