This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/expo/build/launch/withExpoRoot.js.map
2021-04-02 02:24:13 +03:00

1 line
1.6 KiB
Plaintext

{"version":3,"file":"withExpoRoot.js","sourceRoot":"","sources":["../../src/launch/withExpoRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAG3D,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,gBAAwC;IAExC,OAAO,SAAS,QAAQ,CAAC,KAAQ;QAC/B,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC1C,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE;YAC1B,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;YACtB,IAAI,GAAG,CAAC,YAAY,EAAE;gBACpB,aAAa,CAAC,uBAAuB,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;aACzD;YAED,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC;SAC9B;QAED,MAAM,aAAa,GAAG;YACpB,GAAG,KAAK;YACR,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,aAAa,EAAE,aAAa,CAAC,cAAc,EAAE;SACnE,CAAC;QAEF,OAAO,oBAAC,gBAAgB,oBAAK,aAAa,EAAI,CAAC;IACjD,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import * as ErrorRecovery from 'expo-error-recovery';\nimport * as React from 'react';\n\nimport Notifications from '../Notifications/Notifications';\nimport { InitialProps } from './withExpoRoot.types';\n\nexport default function withExpoRoot<P extends InitialProps>(\n AppRootComponent: React.ComponentType<P>\n): React.ComponentType<P> {\n return function ExpoRoot(props: P) {\n const didInitialize = React.useRef(false);\n if (!didInitialize.current) {\n const { exp } = props;\n if (exp.notification) {\n Notifications._setInitialNotification(exp.notification);\n }\n\n didInitialize.current = true;\n }\n\n const combinedProps = {\n ...props,\n exp: { ...props.exp, errorRecovery: ErrorRecovery.recoveredProps },\n };\n\n return <AppRootComponent {...combinedProps} />;\n };\n}\n"]}