index.ios.js 735 Bytes
import App from './js/App';
// import {NativeModules} from 'react-native';

// const { YH_MarketHelper } = NativeModules;


try{
if (!__DEV__ ) {
    global.ErrorUtils.setGlobalHandler((e, isFatal) => {

        if(isFatal) {      
                let eObject = {
                    name: e.name,
                    stack: e.stack,
                    componentStack: e.componentStack,
                    message: e.message
                }                  
                console.log(eObject)
                // YH_MarketHelper.reportWithPointType('UFO_BUSINESS', 'UFO_ERROR_IOS_TRACK', {
                //     st: JSON.stringify(eObject),
                // })
        }
    })
}
} catch(e) {
    console.log(e)
}
App('ios');