UNPKG

1.39 kBSource Map (JSON)View Raw
1{"version":3,"file":"AppLoadingNativeWrapper.js","sourceRoot":"","sources":["../../src/launch/AppLoadingNativeWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,KAAK,CAAC,SAAgB;IAC5D,YAAY,KAAY;QACtB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,YAAY,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IAED,oBAAoB;QAClB,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE;YACxE,gCAAgC;YAChC,IAAI,MAAM,CAAC,OAAO,EAAE;gBAClB,YAAY,CAAC,SAAS,EAAE,CAAC;aAC1B;iBAAM;gBACL,UAAU,CAAC,GAAG,EAAE;oBACd,YAAY,CAAC,SAAS,EAAE,CAAC;gBAC3B,CAAC,EAAE,GAAG,CAAC,CAAC;aACT;SACF;IACH,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC;IACd,CAAC;CACF","sourcesContent":["import * as SplashScreen from 'expo-splash-screen';\nimport React from 'react';\n\ntype Props = {\n autoHideSplash?: boolean;\n};\n\nexport default class AppLoading extends React.Component<Props> {\n constructor(props: Props) {\n super(props);\n SplashScreen.preventAutoHideAsync();\n }\n\n componentWillUnmount() {\n if (this.props.autoHideSplash === undefined || this.props.autoHideSplash) {\n // Hide immediately in E2E tests\n if (global.__E2E__) {\n SplashScreen.hideAsync();\n } else {\n setTimeout(() => {\n SplashScreen.hideAsync();\n }, 200);\n }\n }\n }\n\n render() {\n return null;\n }\n}\n"]}
\No newline at end of file