yeet
This commit is contained in:
53
node_modules/expo/build/launch/AppLoadingPlaceholder.d.ts
generated
vendored
Normal file
53
node_modules/expo/build/launch/AppLoadingPlaceholder.d.ts
generated
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
/**
|
||||
* NOTE(brentvatne):
|
||||
* AppLoadingPlaceholder exists to smooth the upgrade experience to SDK 40. The
|
||||
* placeholder behaves mostly as expected with the existing API, however it
|
||||
* will no longer leverage any native APIs to keep the splash screen visible.
|
||||
* This makes it so a user who upgrades and runs their app can see their app
|
||||
* running and get the warning about the AppLoading module being removed
|
||||
* top, without an extraneous red screen that would appear from attempting to
|
||||
* render an undefined AppLoading component.
|
||||
*
|
||||
* Remove this in SDK 42.
|
||||
*/
|
||||
import React from 'react';
|
||||
declare type Props = {
|
||||
/**
|
||||
* Optional, you can do this process manually if you prefer.
|
||||
* This is mainly for backwards compatibility and it is not recommended.
|
||||
*
|
||||
* When provided, requires providing `onError` prop as well.
|
||||
* @deprecated
|
||||
*/
|
||||
startAsync: () => Promise<void>;
|
||||
/**
|
||||
* If `startAsync` throws an error, it is caught and passed into the provided function.
|
||||
* @deprecated
|
||||
*/
|
||||
onError: (error: Error) => void;
|
||||
/**
|
||||
* Called when `startAsync` resolves or rejects.
|
||||
* This should be used to set state and unmount the `AppLoading` component.
|
||||
* @deprecated
|
||||
*/
|
||||
onFinish: () => void;
|
||||
/**
|
||||
* Whether to hide the native splash screen as soon as you unmount the `AppLoading` component.
|
||||
* Auto-hiding is enabled by default.
|
||||
*/
|
||||
autoHideSplash?: boolean;
|
||||
} | {
|
||||
/**
|
||||
* Whether to hide the native splash screen as soon as you unmount the `AppLoading` component.
|
||||
* Auto-hiding is enabled by default.
|
||||
*/
|
||||
autoHideSplash?: boolean;
|
||||
};
|
||||
export default class AppLoadingPlaceholder extends React.Component<Props> {
|
||||
_isMounted: boolean;
|
||||
componentDidMount(): void;
|
||||
componentWillUnmount(): void;
|
||||
private startLoadingAppResourcesAsync;
|
||||
render(): null;
|
||||
}
|
||||
export {};
|
59
node_modules/expo/build/launch/AppLoadingPlaceholder.js
generated
vendored
Normal file
59
node_modules/expo/build/launch/AppLoadingPlaceholder.js
generated
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
/**
|
||||
* NOTE(brentvatne):
|
||||
* AppLoadingPlaceholder exists to smooth the upgrade experience to SDK 40. The
|
||||
* placeholder behaves mostly as expected with the existing API, however it
|
||||
* will no longer leverage any native APIs to keep the splash screen visible.
|
||||
* This makes it so a user who upgrades and runs their app can see their app
|
||||
* running and get the warning about the AppLoading module being removed
|
||||
* top, without an extraneous red screen that would appear from attempting to
|
||||
* render an undefined AppLoading component.
|
||||
*
|
||||
* Remove this in SDK 42.
|
||||
*/
|
||||
import React from 'react';
|
||||
export default class AppLoadingPlaceholder extends React.Component {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this._isMounted = false;
|
||||
}
|
||||
componentDidMount() {
|
||||
this._isMounted = true;
|
||||
this.startLoadingAppResourcesAsync().catch(error => {
|
||||
console.error(`AppLoading threw an unexpected error when loading:\n${error.stack}`);
|
||||
});
|
||||
}
|
||||
componentWillUnmount() {
|
||||
this._isMounted = false;
|
||||
}
|
||||
async startLoadingAppResourcesAsync() {
|
||||
if (!('startAsync' in this.props)) {
|
||||
return;
|
||||
}
|
||||
if (!('onFinish' in this.props)) {
|
||||
throw new Error('AppLoading onFinish prop is required if startAsync is provided');
|
||||
}
|
||||
if (!('onError' in this.props)) {
|
||||
throw new Error('AppLoading onError prop is required if startAsync is provided');
|
||||
}
|
||||
try {
|
||||
await this.props.startAsync();
|
||||
}
|
||||
catch (e) {
|
||||
if (!this._isMounted) {
|
||||
return;
|
||||
}
|
||||
this.props.onError(e);
|
||||
}
|
||||
finally {
|
||||
if (!this._isMounted) {
|
||||
return;
|
||||
}
|
||||
// If we get to this point then we know that either there was no error, or the error was handled.
|
||||
this.props.onFinish();
|
||||
}
|
||||
}
|
||||
render() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=AppLoadingPlaceholder.js.map
|
1
node_modules/expo/build/launch/AppLoadingPlaceholder.js.map
generated
vendored
Normal file
1
node_modules/expo/build/launch/AppLoadingPlaceholder.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AppLoadingPlaceholder.js","sourceRoot":"","sources":["../../src/launch/AppLoadingPlaceholder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAwC1B,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,KAAK,CAAC,SAAgB;IAAzE;;QACE,eAAU,GAAY,KAAK,CAAC;IA8C9B,CAAC;IA5CC,iBAAiB;QACf,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QAEvB,IAAI,CAAC,6BAA6B,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;YACjD,OAAO,CAAC,KAAK,CAAC,uDAAuD,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;QACtF,CAAC,CAAC,CAAC;IACL,CAAC;IAED,oBAAoB;QAClB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;IAEO,KAAK,CAAC,6BAA6B;QACzC,IAAI,CAAC,CAAC,YAAY,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE;YACjC,OAAO;SACR;QAED,IAAI,CAAC,CAAC,UAAU,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE;YAC/B,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;SACnF;QAED,IAAI,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE;YAC9B,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;SAClF;QAED,IAAI;YACF,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;SAC/B;QAAC,OAAO,CAAC,EAAE;YACV,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;gBACpB,OAAO;aACR;YACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;SACvB;gBAAS;YACR,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;gBACpB,OAAO;aACR;YACD,iGAAiG;YACjG,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;SACvB;IACH,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC;IACd,CAAC;CACF","sourcesContent":["/**\n * NOTE(brentvatne):\n * AppLoadingPlaceholder exists to smooth the upgrade experience to SDK 40. The\n * placeholder behaves mostly as expected with the existing API, however it\n * will no longer leverage any native APIs to keep the splash screen visible.\n * This makes it so a user who upgrades and runs their app can see their app\n * running and get the warning about the AppLoading module being removed\n * top, without an extraneous red screen that would appear from attempting to\n * render an undefined AppLoading component.\n *\n * Remove this in SDK 42.\n */\n\nimport React from 'react';\n\ntype Props =\n | {\n /**\n * Optional, you can do this process manually if you prefer.\n * This is mainly for backwards compatibility and it is not recommended.\n *\n * When provided, requires providing `onError` prop as well.\n * @deprecated\n */\n startAsync: () => Promise<void>;\n\n /**\n * If `startAsync` throws an error, it is caught and passed into the provided function.\n * @deprecated\n */\n onError: (error: Error) => void;\n\n /**\n * Called when `startAsync` resolves or rejects.\n * This should be used to set state and unmount the `AppLoading` component.\n * @deprecated\n */\n onFinish: () => void;\n\n /**\n * Whether to hide the native splash screen as soon as you unmount the `AppLoading` component.\n * Auto-hiding is enabled by default.\n */\n autoHideSplash?: boolean;\n }\n | {\n /**\n * Whether to hide the native splash screen as soon as you unmount the `AppLoading` component.\n * Auto-hiding is enabled by default.\n */\n autoHideSplash?: boolean;\n };\n\nexport default class AppLoadingPlaceholder extends React.Component<Props> {\n _isMounted: boolean = false;\n\n componentDidMount() {\n this._isMounted = true;\n\n this.startLoadingAppResourcesAsync().catch(error => {\n console.error(`AppLoading threw an unexpected error when loading:\\n${error.stack}`);\n });\n }\n\n componentWillUnmount() {\n this._isMounted = false;\n }\n\n private async startLoadingAppResourcesAsync() {\n if (!('startAsync' in this.props)) {\n return;\n }\n\n if (!('onFinish' in this.props)) {\n throw new Error('AppLoading onFinish prop is required if startAsync is provided');\n }\n\n if (!('onError' in this.props)) {\n throw new Error('AppLoading onError prop is required if startAsync is provided');\n }\n\n try {\n await this.props.startAsync();\n } catch (e) {\n if (!this._isMounted) {\n return;\n }\n this.props.onError(e);\n } finally {\n if (!this._isMounted) {\n return;\n }\n // If we get to this point then we know that either there was no error, or the error was handled.\n this.props.onFinish();\n }\n }\n\n render() {\n return null;\n }\n}\n"]}
|
3
node_modules/expo/build/launch/registerRootComponent.d.ts
generated
vendored
Normal file
3
node_modules/expo/build/launch/registerRootComponent.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import 'expo/build/Expo.fx';
|
||||
import * as React from 'react';
|
||||
export default function registerRootComponent<P>(component: React.ComponentType<P>): void;
|
4
node_modules/expo/build/launch/registerRootComponent.expo.d.ts
generated
vendored
Normal file
4
node_modules/expo/build/launch/registerRootComponent.expo.d.ts
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import 'expo/build/Expo.fx';
|
||||
import * as React from 'react';
|
||||
import { InitialProps } from './withExpoRoot.types';
|
||||
export default function registerRootComponent<P extends InitialProps>(component: React.ComponentType<P>): void;
|
11
node_modules/expo/build/launch/registerRootComponent.expo.js
generated
vendored
Normal file
11
node_modules/expo/build/launch/registerRootComponent.expo.js
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
import 'expo/build/Expo.fx';
|
||||
import { activateKeepAwake } from 'expo-keep-awake';
|
||||
import { AppRegistry } from 'react-native';
|
||||
import withExpoRoot from './withExpoRoot';
|
||||
if (__DEV__) {
|
||||
activateKeepAwake();
|
||||
}
|
||||
export default function registerRootComponent(component) {
|
||||
AppRegistry.registerComponent('main', () => withExpoRoot(component));
|
||||
}
|
||||
//# sourceMappingURL=registerRootComponent.expo.js.map
|
1
node_modules/expo/build/launch/registerRootComponent.expo.js.map
generated
vendored
Normal file
1
node_modules/expo/build/launch/registerRootComponent.expo.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"registerRootComponent.expo.js","sourceRoot":"","sources":["../../src/launch/registerRootComponent.expo.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,IAAI,OAAO,EAAE;IACX,iBAAiB,EAAE,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAC3C,SAAiC;IAEjC,WAAW,CAAC,iBAAiB,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;AACvE,CAAC","sourcesContent":["import 'expo/build/Expo.fx';\nimport { activateKeepAwake } from 'expo-keep-awake';\nimport * as React from 'react';\nimport { AppRegistry } from 'react-native';\n\nimport withExpoRoot from './withExpoRoot';\nimport { InitialProps } from './withExpoRoot.types';\n\nif (__DEV__) {\n activateKeepAwake();\n}\n\nexport default function registerRootComponent<P extends InitialProps>(\n component: React.ComponentType<P>\n): void {\n AppRegistry.registerComponent('main', () => withExpoRoot(component));\n}\n"]}
|
6
node_modules/expo/build/launch/registerRootComponent.js
generated
vendored
Normal file
6
node_modules/expo/build/launch/registerRootComponent.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import 'expo/build/Expo.fx';
|
||||
import { AppRegistry } from 'react-native';
|
||||
export default function registerRootComponent(component) {
|
||||
AppRegistry.registerComponent('main', () => component);
|
||||
}
|
||||
//# sourceMappingURL=registerRootComponent.js.map
|
1
node_modules/expo/build/launch/registerRootComponent.js.map
generated
vendored
Normal file
1
node_modules/expo/build/launch/registerRootComponent.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"registerRootComponent.js","sourceRoot":"","sources":["../../src/launch/registerRootComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAI,SAAiC;IAChF,WAAW,CAAC,iBAAiB,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;AACzD,CAAC","sourcesContent":["import 'expo/build/Expo.fx';\nimport * as React from 'react';\nimport { AppRegistry } from 'react-native';\n\nexport default function registerRootComponent<P>(component: React.ComponentType<P>): void {\n AppRegistry.registerComponent('main', () => component);\n}\n"]}
|
3
node_modules/expo/build/launch/registerRootComponent.web.d.ts
generated
vendored
Normal file
3
node_modules/expo/build/launch/registerRootComponent.web.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import * as React from 'react';
|
||||
import { InitialProps } from './withExpoRoot.types';
|
||||
export default function registerRootComponent<P extends InitialProps>(component: React.ComponentType<P>): void;
|
11
node_modules/expo/build/launch/registerRootComponent.web.js
generated
vendored
Normal file
11
node_modules/expo/build/launch/registerRootComponent.web.js
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
import * as React from 'react';
|
||||
import { AppRegistry } from 'react-native';
|
||||
import withExpoRoot from './withExpoRoot';
|
||||
export default function registerRootComponent(component) {
|
||||
const App = withExpoRoot(component);
|
||||
const RootComponent = props => React.createElement(App, Object.assign({}, props));
|
||||
AppRegistry.registerComponent('main', () => RootComponent);
|
||||
const rootTag = document.getElementById('root') ?? document.getElementById('main');
|
||||
AppRegistry.runApplication('main', { rootTag });
|
||||
}
|
||||
//# sourceMappingURL=registerRootComponent.web.js.map
|
1
node_modules/expo/build/launch/registerRootComponent.web.js.map
generated
vendored
Normal file
1
node_modules/expo/build/launch/registerRootComponent.web.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"registerRootComponent.web.js","sourceRoot":"","sources":["../../src/launch/registerRootComponent.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAC3C,SAAiC;IAEjC,MAAM,GAAG,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;IACpC,MAAM,aAAa,GAAgB,KAAK,CAAC,EAAE,CAAC,oBAAC,GAAG,oBAAK,KAAK,EAAI,CAAC;IAC/D,WAAW,CAAC,iBAAiB,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC;IAC3D,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IACnF,WAAW,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;AAClD,CAAC","sourcesContent":["import * as React from 'react';\nimport { AppRegistry } from 'react-native';\n\nimport withExpoRoot from './withExpoRoot';\nimport { InitialProps } from './withExpoRoot.types';\n\nexport default function registerRootComponent<P extends InitialProps>(\n component: React.ComponentType<P>\n): void {\n const App = withExpoRoot(component);\n const RootComponent: React.FC<P> = props => <App {...props} />;\n AppRegistry.registerComponent('main', () => RootComponent);\n const rootTag = document.getElementById('root') ?? document.getElementById('main');\n AppRegistry.runApplication('main', { rootTag });\n}\n"]}
|
3
node_modules/expo/build/launch/withExpoRoot.d.ts
generated
vendored
Normal file
3
node_modules/expo/build/launch/withExpoRoot.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import * as React from 'react';
|
||||
import { InitialProps } from './withExpoRoot.types';
|
||||
export default function withExpoRoot<P extends InitialProps>(AppRootComponent: React.ComponentType<P>): React.ComponentType<P>;
|
21
node_modules/expo/build/launch/withExpoRoot.js
generated
vendored
Normal file
21
node_modules/expo/build/launch/withExpoRoot.js
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
import * as ErrorRecovery from 'expo-error-recovery';
|
||||
import * as React from 'react';
|
||||
import Notifications from '../Notifications/Notifications';
|
||||
export default function withExpoRoot(AppRootComponent) {
|
||||
return function ExpoRoot(props) {
|
||||
const didInitialize = React.useRef(false);
|
||||
if (!didInitialize.current) {
|
||||
const { exp } = props;
|
||||
if (exp.notification) {
|
||||
Notifications._setInitialNotification(exp.notification);
|
||||
}
|
||||
didInitialize.current = true;
|
||||
}
|
||||
const combinedProps = {
|
||||
...props,
|
||||
exp: { ...props.exp, errorRecovery: ErrorRecovery.recoveredProps },
|
||||
};
|
||||
return React.createElement(AppRootComponent, Object.assign({}, combinedProps));
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=withExpoRoot.js.map
|
1
node_modules/expo/build/launch/withExpoRoot.js.map
generated
vendored
Normal file
1
node_modules/expo/build/launch/withExpoRoot.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"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"]}
|
10
node_modules/expo/build/launch/withExpoRoot.types.d.ts
generated
vendored
Normal file
10
node_modules/expo/build/launch/withExpoRoot.types.d.ts
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
export declare type InitialProps = {
|
||||
exp: {
|
||||
notification?: any;
|
||||
errorRecovery?: any;
|
||||
[key: string]: any;
|
||||
};
|
||||
shell?: boolean;
|
||||
shellManifestUrl?: string;
|
||||
[key: string]: any;
|
||||
};
|
2
node_modules/expo/build/launch/withExpoRoot.types.js
generated
vendored
Normal file
2
node_modules/expo/build/launch/withExpoRoot.types.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=withExpoRoot.types.js.map
|
1
node_modules/expo/build/launch/withExpoRoot.types.js.map
generated
vendored
Normal file
1
node_modules/expo/build/launch/withExpoRoot.types.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"withExpoRoot.types.js","sourceRoot":"","sources":["../../src/launch/withExpoRoot.types.ts"],"names":[],"mappings":"","sourcesContent":["export type InitialProps = {\n exp: {\n notification?: any;\n errorRecovery?: any;\n [key: string]: any;\n };\n shell?: boolean;\n shellManifestUrl?: string;\n [key: string]: any;\n};\n"]}
|
3
node_modules/expo/build/launch/withExpoRoot.web.d.ts
generated
vendored
Normal file
3
node_modules/expo/build/launch/withExpoRoot.web.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import * as React from 'react';
|
||||
import { InitialProps } from './withExpoRoot.types';
|
||||
export default function withExpoRoot<P extends InitialProps>(AppRootComponent: React.ComponentType<P>): React.ComponentClass<P>;
|
14
node_modules/expo/build/launch/withExpoRoot.web.js
generated
vendored
Normal file
14
node_modules/expo/build/launch/withExpoRoot.web.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
import * as ErrorRecovery from 'expo-error-recovery';
|
||||
import * as React from 'react';
|
||||
export default function withExpoRoot(AppRootComponent) {
|
||||
return class ExpoRootComponent extends React.Component {
|
||||
render() {
|
||||
const props = {
|
||||
...this.props,
|
||||
exp: { ...this.props.exp, errorRecovery: ErrorRecovery.recoveredProps },
|
||||
};
|
||||
return React.createElement(AppRootComponent, Object.assign({}, props));
|
||||
}
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=withExpoRoot.web.js.map
|
1
node_modules/expo/build/launch/withExpoRoot.web.js.map
generated
vendored
Normal file
1
node_modules/expo/build/launch/withExpoRoot.web.js.map
generated
vendored
Normal file
@ -0,0 +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"]}
|
Reference in New Issue
Block a user