UNPKG

1.11 kBSource Map (JSON)View Raw
1{"version":3,"file":"withExpoRoot.web.js","sourceRoot":"","sources":["../../src/launch/withExpoRoot.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,gBAAwC;IAExC,OAAO,MAAM,iBAAkB,SAAQ,KAAK,CAAC,SAAY;QACvD,MAAM;YACJ,MAAM,KAAK,GAAG;gBACZ,GAAG,IAAI,CAAC,KAAK;gBACb,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,aAAa,EAAE,aAAa,CAAC,cAAc,EAAE;aACxE,CAAC;YAEF,OAAO,oBAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAC;QACzC,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import * as ErrorRecovery from 'expo-error-recovery';\nimport * as React from 'react';\n\nimport { InitialProps } from './withExpoRoot.types';\n\nexport default function withExpoRoot<P extends InitialProps>(\n AppRootComponent: React.ComponentType<P>\n): React.ComponentClass<P> {\n return class ExpoRootComponent extends React.Component<P> {\n render() {\n const props = {\n ...this.props,\n exp: { ...this.props.exp, errorRecovery: ErrorRecovery.recoveredProps },\n };\n\n return <AppRootComponent {...props} />;\n }\n };\n}\n"]}
\No newline at end of file