import React, {PureComponent} from 'react';
import {
DeviceEventEmitter,
TouchableOpacity,
View,
Text,
Alert
} from 'react-native'
import Render from './render'
import PropsType from 'prop-types'
import styles from "./styles";
import HocErrorCatch from './HocErrorCatch'
import {setJSExceptionHandler, setNativeExceptionHandler} from 'react-native-exception-handler'
/**
* JS_Exceptions:你的Javascript代码产生的错误
*
* 第一个参数,错误发生时调用的函数
* 第二个参数,设置true,在开发模式下调用处理程序代替 red 屏幕
*
* error 错误信息
* isFatal 是否是致命的,一定发生崩溃的
*/
setJSExceptionHandler((error, isFatal)=>{
// 您可以捕获这些未处理的异常并执行诸如显示警报或弹出窗口之类的任务,执行清理甚至点击API以在关闭应用程序之前通知开发团队。
Alert.alert(e