expo-dev-launcher 5.1.2 → 5.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 5.1.3 — 2025-04-14
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
13
17
  ## 5.1.2 — 2025-04-09
14
18
 
15
19
  _This version does not introduce any user-facing changes._
@@ -8,13 +8,13 @@ expoModule {
8
8
  }
9
9
 
10
10
  group = "host.exp.exponent"
11
- version = "5.1.2"
11
+ version = "5.1.3"
12
12
 
13
13
  android {
14
14
  namespace "expo.modules.devlauncher"
15
15
  defaultConfig {
16
16
  versionCode 9
17
- versionName "5.1.2"
17
+ versionName "5.1.3"
18
18
  }
19
19
 
20
20
  buildTypes {
@@ -777,7 +777,7 @@ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
777
777
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,(0,r(d[0]).ensureNativeModulesAreInstalled)();e.default=globalThis.expo.EventEmitter}),695,[688]);
778
778
  __d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.requireNativeViewManager=function(e,o){var u=f.NativeModules.NativeUnimoduleProxy.viewManagersMetadata,s=(null==u||u[e],M(e,o)),h=(function(e){function o(){var e;(0,t.default)(this,o);for(var n=arguments.length,u=new Array(n),l=0;l<n;l++)u[l]=arguments[l];return(e=_(this,o,[].concat(u))).nativeRef=(0,c.createRef)(),e.nativeTag=null,e}return(0,l.default)(o,e),(0,n.default)(o,[{key:"componentDidMount",value:function(){this.nativeTag=(0,f.findNodeHandle)(this.nativeRef.current)}},{key:"render",value:function(){return(0,p.jsx)(s,Object.assign({},this.props,{ref:this.nativeRef}))}}])})(c.PureComponent);h.displayName=o||e;try{var w=(0,v.requireNativeModule)(e).ViewPrototypes[o?`${e}_${o}`:e];w&&Object.assign(h.prototype,w)}catch(e){}return h};var t=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),u=e(r(d[4])),l=e(r(d[5])),c=r(d[6]),f=r(d[7]),s=r(d[8]),v=r(d[9]),p=r(d[10]);function _(e,t,n){return t=(0,u.default)(t),(0,o.default)(e,h()?Reflect.construct(t,n||[],(0,u.default)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var w=new Map;function y(e,t){var n,o,u=null!=(n=null==(o=globalThis.expo)?void 0:o.__expo_app_identifier__)?n:'',l=u?`_${u}`:'',c=t?`ViewManagerAdapter_${e}_${t}${l}`:`ViewManagerAdapter_${e}${l}`;return(0,s.get)(c,(function(){var n,o=null==(n=globalThis.expo)?void 0:n.getViewConfig(e,t);return o||console.warn('Unable to get the view config for %s from module &s',null!=t?t:'default view',e),Object.assign({uiViewClassName:c},o)}))}function M(e,t){var n=`${e}_${t}`,o=w.get(n);if(!o){var u=y(e,t);return w.set(n,u),u}return o}}),696,[7,14,15,25,27,30,112,1,64,697,260]);
779
779
  __d((function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.requireNativeModule=function(l){var n=o(l);if(!n)throw new Error(`Cannot find native module '${l}'`);return n},e.requireOptionalNativeModule=o;var n=l(r(d[1])),u=r(d[2]);function o(l){var o,t,v;return(0,u.ensureNativeModulesAreInstalled)(),null!=(o=null!=(t=null==(v=globalThis.expo)||null==(v=v.modules)?void 0:v[l])?t:n.default[l])?o:null}}),697,[7,682,688]);
780
- __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.registerWebModule=function(o){var s;(0,l.ensureNativeModulesAreInstalled)();var u=o.name;if(!u)throw new Error('Module implementation must be a class');null!=globalThis&&null!=(s=globalThis.expo)&&s.modules||(globalThis.expo.modules={});if(globalThis.expo.modules[u])return globalThis.expo.modules[u];return globalThis.expo.modules[u]=new o,globalThis.expo.modules[u]};var l=r(d[0])}),698,[688]);
780
+ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.registerWebModule=function(o,s){var n,u;if((0,l.ensureNativeModulesAreInstalled)(),!(s=null!=(n=s)?n:o.name))throw new Error('Web module implementation is missing a name - it is either not a class or has been minified. Pass the name as a second argument to the `registerWebModule` function.');null!=globalThis&&null!=(u=globalThis.expo)&&u.modules||(globalThis.expo.modules={});if(globalThis.expo.modules[s])return globalThis.expo.modules[s];return globalThis.expo.modules[s]=new o,globalThis.expo.modules[s]};var l=r(d[0])}),698,[688]);
781
781
  __d((function(g,r,i,a,m,e,d){}),699,[]);
782
782
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.PermissionStatus=void 0;e.PermissionStatus=(function(n){return n.GRANTED="granted",n.UNDETERMINED="undetermined",n.DENIED="denied",n})({})}),700,[]);
783
783
  __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.createPermissionHook=function(t){return function(u){return l(t,u)}};var u=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),c=r(d[4]),f=["get","request"];function l(t,l){var s=(0,c.useRef)(!0),v=(0,c.useState)(null),h=(0,o.default)(v,2),b=h[0],k=h[1],y=l||{},M=y.get,q=void 0===M||M,_=y.request,j=void 0!==_&&_,O=(0,n.default)(y,f),C=(0,c.useCallback)((0,u.default)((function*(){var u=yield t.getMethod(Object.keys(O).length>0?O:void 0);return s.current&&k(u),u})),[t.getMethod]),E=(0,c.useCallback)((0,u.default)((function*(){var u=yield t.requestMethod(Object.keys(O).length>0?O:void 0);return s.current&&k(u),u})),[t.requestMethod]);return(0,c.useEffect)((function(){j&&E(),!j&&q&&C()}),[q,j,E,C]),(0,c.useEffect)((function(){return s.current=!0,function(){s.current=!1}}),[]),[b,E,C]}}),701,[7,365,211,50,112]);
@@ -785,7 +785,7 @@ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
785
785
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useReleasingSharedObject=function(u,t){var c=(0,n.useRef)(null),l=(0,n.useRef)(!1),f=(0,n.useRef)(t);null==c.current&&(c.current=u());var o=(0,n.useMemo)((function(){var n,o,s=c.current,v=(null==(n=f.current)?void 0:n.length)===t.length&&t.every((function(n,u){return n===f.current[u]}));s&&v?l.current=!0:(null==(o=c.current)||o.release(),s=u(),c.current=s,f.current=t);return s}),t);return(0,n.useEffect)((function(){return l.current=!1,function(){!l.current&&c.current&&c.current.release()}}),[]),o};var n=r(d[0])}),703,[112]);
786
786
  __d((function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.reloadAppAsync=function(){return o.apply(this,arguments)};var n=l(r(d[1]));function o(){return o=(0,n.default)((function*(){var l,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'Reloaded from JS call';yield null==(l=globalThis.expo)?void 0:l.reloadAppAsync(n)})),o.apply(this,arguments)}}),704,[7,365]);
787
787
  __d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.UnavailabilityError=void 0;var t=e(r(d[1])),o=e(r(d[2])),n=e(r(d[3])),l=e(r(d[4])),u=e(r(d[5])),c=r(d[6]);e(r(d[7]));function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}_e.UnavailabilityError=(function(e){function c(e,t){return(0,o.default)(this,c),u=this,v=c,p=['ERR_UNAVAILABLE',`The method or property ${e}.${t} is not available on android, are you sure you've linked all the native dependencies properly?`],v=(0,l.default)(v),(0,n.default)(u,f()?Reflect.construct(v,p||[],(0,l.default)(u).constructor):v.apply(u,p));var u,v,p}return(0,u.default)(c,e),(0,t.default)(c)})(c.CodedError)}),705,[7,15,14,25,27,30,685,683]);
788
- __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.LegacyEventEmitter=void 0;var n=t(r(d[1])),s=t(r(d[2])),o=t(r(d[3])),v=t(r(d[4])),u=r(d[5]),l='@@nativeEmitterSubscription@@';e.LegacyEventEmitter=(function(){return(0,o.default)((function t(n){if((0,s.default)(this,t),this._listenerCount=0,n.__expo_module_name__)return n;this._nativeModule=n,this._eventEmitter=new u.NativeEventEmitter(n)}),[{key:"addListener",value:function(t,s){var o=this;!this._listenerCount&&this._nativeModule.startObserving&&this._nativeModule.startObserving(),this._listenerCount++;var v=this._eventEmitter.addListener(t,s),u=(0,n.default)((0,n.default)({},l,v),"remove",(function(){o.removeSubscription(u)}));return u}},{key:"removeAllListeners",value:function(t){var n=this._eventEmitter.listenerCount?this._eventEmitter.listenerCount(t):this._eventEmitter.listeners(t).length;this._eventEmitter.removeAllListeners(t),this._listenerCount-=n,(0,v.default)(this._listenerCount>=0,"EventEmitter must have a non-negative number of listeners"),!this._listenerCount&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving()}},{key:"removeSubscription",value:function(t){var n=t[l];n&&('remove'in n&&n.remove(),this._listenerCount--,delete t[l],t.remove=function(){},!this._listenerCount&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving())}},{key:"emit",value:function(t){for(var n,s=arguments.length,o=new Array(s>1?s-1:0),v=1;v<s;v++)o[v-1]=arguments[v];(n=this._eventEmitter).emit.apply(n,[t].concat(o))}}])})()}),706,[7,80,14,15,3,1]);
788
+ __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.LegacyEventEmitter=void 0;var n=t(r(d[1])),s=t(r(d[2])),o=t(r(d[3])),v=t(r(d[4])),u=r(d[5]),l='@@nativeEmitterSubscription@@';e.LegacyEventEmitter=(function(){return(0,o.default)((function t(n){if((0,s.default)(this,t),this._listenerCount=0,n.__expo_module_name__)return n;this._nativeModule=n,this._eventEmitter=new u.NativeEventEmitter(n)}),[{key:"addListener",value:function(t,s){var o=this;!this._listenerCount&&this._nativeModule.startObserving&&this._nativeModule.startObserving(),this._listenerCount++;var v=this._eventEmitter.addListener(t,s),u=(0,n.default)((0,n.default)({},l,v),"remove",(function(){o.removeSubscription(u)}));return u}},{key:"removeAllListeners",value:function(t){var n=this._eventEmitter.listenerCount?this._eventEmitter.listenerCount(t):this._eventEmitter.listeners(t).length;this._eventEmitter.removeAllListeners(t),this._listenerCount-=n,(0,v.default)(this._listenerCount>=0,"EventEmitter must have a non-negative number of listeners"),!this._listenerCount&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving()}},{key:"removeSubscription",value:function(t){var n=t,s=n[l];s&&('remove'in s&&(null==s.remove||s.remove()),this._listenerCount--,delete n[l],t.remove=function(){},!this._listenerCount&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving())}},{key:"emit",value:function(t){for(var n,s=arguments.length,o=new Array(s>1?s-1:0),v=1;v<s;v++)o[v-1]=arguments[v];(n=this._eventEmitter).emit.apply(n,[t].concat(o))}}])})()}),706,[7,80,14,15,3,1]);
789
789
  __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.SafeAreaView=function(e){var f=e.style,p=void 0===f?{}:f,l=e.mode,v=e.edges,c=(0,t.default)(e,a),s=(0,n.useSafeAreaInsets)(),y=null!=v?v.reduce((function(e,t){return e|u[t]}),0):15,_=r.useMemo((function(){var e=8&y?s.top:0,t=4&y?s.right:0,r=2&y?s.bottom:0,n=1&y?s.left:0,o=i.StyleSheet.flatten(p);if('margin'===l){var a=o.margin,f=void 0===a?0:a,u=o.marginVertical,v=void 0===u?f:u,c=o.marginHorizontal,_=void 0===c?f:c,b=o.marginTop,h=void 0===b?v:b,O=o.marginRight,j=void 0===O?_:O,w=o.marginBottom,M=void 0===w?v:w,P=o.marginLeft;return[p,{marginTop:h+e,marginRight:j+t,marginBottom:M+r,marginLeft:(void 0===P?_:P)+n}]}var B=o.padding,L=void 0===B?0:B,R=o.paddingVertical,S=void 0===R?L:R,T=o.paddingHorizontal,V=void 0===T?L:T,k=o.paddingTop,W=void 0===k?S:k,z=o.paddingRight,A=void 0===z?V:z,D=o.paddingBottom,H=void 0===D?S:D,x=o.paddingLeft;return[p,{paddingTop:W+e,paddingRight:A+t,paddingBottom:H+r,paddingLeft:(void 0===x?V:x)+n}]}),[p,s,l,y]);return(0,o.jsx)(i.View,Object.assign({style:_},c))};var t=e(_r(d[1])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var i={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(i,o,a):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i})(_r(d[2])),i=_r(d[3]),n=_r(d[4]),o=_r(d[5]),a=["style","mode","edges"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}var u={top:8,right:4,bottom:2,left:1}}),707,[7,211,112,1,677,260]);
790
790
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.initialWindowSafeAreaInsets=e.initialWindowMetrics=void 0;var n=(0,r(d[0]).requireNativeModule)('RNCSafeAreaProvider'),t=e.initialWindowMetrics=null!=n?n.initialWindowMetrics:null;e.initialWindowSafeAreaInsets=null==t?void 0:t.insets}),708,[679]);
791
791
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0})}),709,[]);
@@ -1,7 +1,8 @@
1
+ import type { ErrorHandlerCallback } from 'react-native';
1
2
  /**
2
3
  * @hidden
3
4
  */
4
- export declare function createErrorHandler(originalHandler: any): (error: any, isFatal: any) => void;
5
+ export declare function createErrorHandler(originalHandler: ErrorHandlerCallback): ErrorHandlerCallback;
5
6
  /**
6
7
  * @hidden
7
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"DevLauncherErrorManager.d.ts","sourceRoot":"","sources":["../src/DevLauncherErrorManager.ts"],"names":[],"mappings":"AA0DA;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,eAAe,KAAA,IACxC,UAAK,EAAE,YAAO,UAQvB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,SAEnC"}
1
+ {"version":3,"file":"DevLauncherErrorManager.d.ts","sourceRoot":"","sources":["../src/DevLauncherErrorManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AA4DzD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,oBAAoB,GAAG,oBAAoB,CAS9F;AAED;;GAEG;AACH,wBAAgB,oBAAoB,SAEnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DevLauncherErrorManager.js","sourceRoot":"","sources":["../src/DevLauncherErrorManager.ts"],"names":[],"mappings":"AAGA,IAAI,sBAAsB,GAAG,IAAI,CAAC;AAClC,IAAI,MAAM,GAAG,KAAK,CAAC,CAAC,gDAAgD;AAEpE,MAAM,iCAAiC,GAAG;;;;mGAIyD,CAAC;AAEpG,MAAM,gCAAgC,GAAG;;;mGAG0D,CAAC;AAEpG,SAAS,2BAA2B,CAAC,KAAiB;IACpD,KAAK,CAAC,OAAO,IAAI,MAAM,GAAG,iCAAiC,CAAC;AAC9D,CAAC;AAED,SAAS,+BAA+B,CAAC,KAAY;IACnD,KAAK,CAAC,OAAO,GAAG;;EAEhB,gCAAgC,EAAE,CAAC;AACrC,CAAC;AAED,SAAS,cAAc,CAAC,KAAyB;IAC/C,IAAI,MAAM,IAAI,KAAK,EAAE,CAAC;QACpB,sCAAsC;QACtC,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,iBAAiB,CAAC,CAAC,CAAC;gBACvB,2BAA2B,CAAC,KAAK,CAAC,CAAC;gBACnC,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC;SAAM,IACL,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC,IAAI,4BAA4B;QACtF,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,0DAA0D,CAAC,CAAC,mBAAmB;MACtG,CAAC;QACD,+BAA+B,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CAAC,eAAe,EAAE,KAAK,EAAE,OAAO;IACnD,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,gGAAgG;QAChG,oGAAoG;QACpG,IAAI,MAAM,IAAI,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,6CAA6C,CAAC,EAAE,CAAC;YACrF,OAAO;QACT,CAAC;QACD,cAAc,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,MAAM,GAAG,IAAI,CAAC;IACd,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,eAAe;IAChD,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QACxB,IAAI,sBAAsB,EAAE,CAAC;YAC3B,YAAY,CAAC,eAAe,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;YAC9C,OAAO;QACT,CAAC;QAED,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClC,CAAC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB;IAClC,sBAAsB,GAAG,KAAK,CAAC;AACjC,CAAC","sourcesContent":["// Similar interface to the one used in expo modules.\ntype CodedError = Error & { code?: string };\n\nlet isErrorHandlingEnabled = true;\nlet wasHit = false; // whether the original error handler was called\n\nconst unavailableErrorPossibleSolutions = `Some possible solutions:\n- Make sure that the method is available on the current platform.\n- Make sure you're using the newest available version of this development client.\n- Make sure you're running a compatible version of your JavaScript code.\n- If you've installed a new library recently, you may need to make a new development client build.`;\n\nconst moduleIsMissingPossibleSolutions = `Some possible solutions:\n- Make sure you're using the newest available version of this development client.\n- Make sure you're running a compatible version of your JavaScript code.\n- If you've installed a new library recently, you may need to make a new development client build.`;\n\nfunction customizeUnavailableMessage(error: CodedError) {\n error.message += '\\n\\n' + unavailableErrorPossibleSolutions;\n}\n\nfunction customizeModuleIsMissingMessage(error: Error) {\n error.message = `Your JavaScript code tried to access a native module that doesn't exist in this development client. \n\n${moduleIsMissingPossibleSolutions}`;\n}\n\nfunction customizeError(error: Error | CodedError) {\n if ('code' in error) {\n // It's a CodedError from expo modules\n switch (error.code) {\n case 'ERR_UNAVAILABLE': {\n customizeUnavailableMessage(error);\n break;\n }\n }\n } else if (\n error.message.includes('Native module cannot be null') || // RN 0.64 and below message\n error.message.includes('`new NativeEventEmitter()` requires a non-null argument.') // RN 0.65+ message\n ) {\n customizeModuleIsMissingMessage(error);\n }\n}\n\nfunction errorHandler(originalHandler, error, isFatal) {\n if (error instanceof Error) {\n // Suppresses `\"main\" has not been registered` error only if it was caused by a different error.\n // Otherwise, we want to show it, cause the user may forget to call `AppRegistry.registerComponent`.\n if (wasHit && error.message?.includes('has not been registered. This can happen if')) {\n return;\n }\n customizeError(error);\n }\n\n wasHit = true;\n originalHandler(error, isFatal);\n}\n\n/**\n * @hidden\n */\nexport function createErrorHandler(originalHandler) {\n return (error, isFatal) => {\n if (isErrorHandlingEnabled) {\n errorHandler(originalHandler, error, isFatal);\n return;\n }\n\n originalHandler(error, isFatal);\n };\n}\n\n/**\n * @hidden\n */\nexport function disableErrorHandling() {\n isErrorHandlingEnabled = false;\n}\n"]}
1
+ {"version":3,"file":"DevLauncherErrorManager.js","sourceRoot":"","sources":["../src/DevLauncherErrorManager.ts"],"names":[],"mappings":"AAKA,IAAI,sBAAsB,GAAG,IAAI,CAAC;AAClC,IAAI,MAAM,GAAG,KAAK,CAAC,CAAC,gDAAgD;AAEpE,MAAM,iCAAiC,GAAG;;;;mGAIyD,CAAC;AAEpG,MAAM,gCAAgC,GAAG;;;mGAG0D,CAAC;AAEpG,SAAS,2BAA2B,CAAC,KAAiB;IACpD,KAAK,CAAC,OAAO,IAAI,MAAM,GAAG,iCAAiC,CAAC;AAC9D,CAAC;AAED,SAAS,+BAA+B,CAAC,KAAY;IACnD,KAAK,CAAC,OAAO,GAAG;;EAEhB,gCAAgC,EAAE,CAAC;AACrC,CAAC;AAED,SAAS,cAAc,CAAC,KAAyB;IAC/C,IAAI,MAAM,IAAI,KAAK,EAAE,CAAC;QACpB,sCAAsC;QACtC,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,iBAAiB,CAAC,CAAC,CAAC;gBACvB,2BAA2B,CAAC,KAAK,CAAC,CAAC;gBACnC,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC;SAAM,IACL,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC,IAAI,4BAA4B;QACtF,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,0DAA0D,CAAC,CAAC,mBAAmB;MACtG,CAAC;QACD,+BAA+B,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CAAC,eAAqC,EAAE,KAAU,EAAE,OAAiB;IACxF,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,gGAAgG;QAChG,oGAAoG;QACpG,IAAI,MAAM,IAAI,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,6CAA6C,CAAC,EAAE,CAAC;YACrF,OAAO;QACT,CAAC;QACD,cAAc,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,MAAM,GAAG,IAAI,CAAC;IACd,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,eAAqC;IACtE,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QACxB,IAAI,sBAAsB,EAAE,CAAC;YAC3B,YAAY,CAAC,eAAe,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;YAC9C,OAAO;QACT,CAAC;QAED,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClC,CAAC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB;IAClC,sBAAsB,GAAG,KAAK,CAAC;AACjC,CAAC","sourcesContent":["import type { ErrorHandlerCallback } from 'react-native';\n\n// Similar interface to the one used in expo modules.\ntype CodedError = Error & { code?: string };\n\nlet isErrorHandlingEnabled = true;\nlet wasHit = false; // whether the original error handler was called\n\nconst unavailableErrorPossibleSolutions = `Some possible solutions:\n- Make sure that the method is available on the current platform.\n- Make sure you're using the newest available version of this development client.\n- Make sure you're running a compatible version of your JavaScript code.\n- If you've installed a new library recently, you may need to make a new development client build.`;\n\nconst moduleIsMissingPossibleSolutions = `Some possible solutions:\n- Make sure you're using the newest available version of this development client.\n- Make sure you're running a compatible version of your JavaScript code.\n- If you've installed a new library recently, you may need to make a new development client build.`;\n\nfunction customizeUnavailableMessage(error: CodedError) {\n error.message += '\\n\\n' + unavailableErrorPossibleSolutions;\n}\n\nfunction customizeModuleIsMissingMessage(error: Error) {\n error.message = `Your JavaScript code tried to access a native module that doesn't exist in this development client. \n\n${moduleIsMissingPossibleSolutions}`;\n}\n\nfunction customizeError(error: Error | CodedError) {\n if ('code' in error) {\n // It's a CodedError from expo modules\n switch (error.code) {\n case 'ERR_UNAVAILABLE': {\n customizeUnavailableMessage(error);\n break;\n }\n }\n } else if (\n error.message.includes('Native module cannot be null') || // RN 0.64 and below message\n error.message.includes('`new NativeEventEmitter()` requires a non-null argument.') // RN 0.65+ message\n ) {\n customizeModuleIsMissingMessage(error);\n }\n}\n\nfunction errorHandler(originalHandler: ErrorHandlerCallback, error: any, isFatal?: boolean) {\n if (error instanceof Error) {\n // Suppresses `\"main\" has not been registered` error only if it was caused by a different error.\n // Otherwise, we want to show it, cause the user may forget to call `AppRegistry.registerComponent`.\n if (wasHit && error.message?.includes('has not been registered. This can happen if')) {\n return;\n }\n customizeError(error);\n }\n\n wasHit = true;\n originalHandler(error, isFatal);\n}\n\n/**\n * @hidden\n */\nexport function createErrorHandler(originalHandler: ErrorHandlerCallback): ErrorHandlerCallback {\n return (error, isFatal) => {\n if (isErrorHandlingEnabled) {\n errorHandler(originalHandler, error, isFatal);\n return;\n }\n\n originalHandler(error, isFatal);\n };\n}\n\n/**\n * @hidden\n */\nexport function disableErrorHandling() {\n isErrorHandlingEnabled = false;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"setUpErrorHandler.fx.js","sourceRoot":"","sources":["../src/setUpErrorHandler.fx.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,aAAa,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAC;AACpD,UAAU,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,CAAC","sourcesContent":["import { ErrorUtils } from 'react-native';\n\nimport { createErrorHandler } from './DevLauncherErrorManager';\n\nconst globalHandler = ErrorUtils.getGlobalHandler();\nErrorUtils.setGlobalHandler(createErrorHandler(globalHandler));\n"]}
1
+ {"version":3,"file":"setUpErrorHandler.fx.js","sourceRoot":"","sources":["../src/setUpErrorHandler.fx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,aAAa,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAC;AACpD,UAAU,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,CAAC","sourcesContent":["import { createErrorHandler } from './DevLauncherErrorManager';\n\nconst globalHandler = ErrorUtils.getGlobalHandler();\nErrorUtils.setGlobalHandler(createErrorHandler(globalHandler));\n"]}
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=setUpErrorHandler.fx.web.d.ts.map
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=setUpErrorHandler.fx.web.js.map
package/ios/main.jsbundle CHANGED
@@ -774,7 +774,7 @@ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
774
774
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,(0,r(d[0]).ensureNativeModulesAreInstalled)();e.default=globalThis.expo.EventEmitter}),692,[685]);
775
775
  __d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.requireNativeViewManager=function(e,o){var u=f.NativeModules.NativeUnimoduleProxy.viewManagersMetadata,s=(null==u||u[e],M(e,o)),h=(function(e){function o(){var e;(0,t.default)(this,o);for(var n=arguments.length,u=new Array(n),l=0;l<n;l++)u[l]=arguments[l];return(e=_(this,o,[].concat(u))).nativeRef=(0,c.createRef)(),e.nativeTag=null,e}return(0,l.default)(o,e),(0,n.default)(o,[{key:"componentDidMount",value:function(){this.nativeTag=(0,f.findNodeHandle)(this.nativeRef.current)}},{key:"render",value:function(){return(0,p.jsx)(s,Object.assign({},this.props,{ref:this.nativeRef}))}}])})(c.PureComponent);h.displayName=o||e;try{var w=(0,v.requireNativeModule)(e).ViewPrototypes[o?`${e}_${o}`:e];w&&Object.assign(h.prototype,w)}catch(e){}return h};var t=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),u=e(r(d[4])),l=e(r(d[5])),c=r(d[6]),f=r(d[7]),s=r(d[8]),v=r(d[9]),p=r(d[10]);function _(e,t,n){return t=(0,u.default)(t),(0,o.default)(e,h()?Reflect.construct(t,n||[],(0,u.default)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var w=new Map;function y(e,t){var n,o,u=null!=(n=null==(o=globalThis.expo)?void 0:o.__expo_app_identifier__)?n:'',l=u?`_${u}`:'',c=t?`ViewManagerAdapter_${e}_${t}${l}`:`ViewManagerAdapter_${e}${l}`;return(0,s.get)(c,(function(){var n,o=null==(n=globalThis.expo)?void 0:n.getViewConfig(e,t);return o||console.warn('Unable to get the view config for %s from module &s',null!=t?t:'default view',e),Object.assign({uiViewClassName:c},o)}))}function M(e,t){var n=`${e}_${t}`,o=w.get(n);if(!o){var u=y(e,t);return w.set(n,u),u}return o}}),693,[7,14,15,25,27,30,112,1,64,694,262]);
776
776
  __d((function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.requireNativeModule=function(l){var n=o(l);if(!n)throw new Error(`Cannot find native module '${l}'`);return n},e.requireOptionalNativeModule=o;var n=l(r(d[1])),u=r(d[2]);function o(l){var o,t,v;return(0,u.ensureNativeModulesAreInstalled)(),null!=(o=null!=(t=null==(v=globalThis.expo)||null==(v=v.modules)?void 0:v[l])?t:n.default[l])?o:null}}),694,[7,679,685]);
777
- __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.registerWebModule=function(o){var s;(0,l.ensureNativeModulesAreInstalled)();var u=o.name;if(!u)throw new Error('Module implementation must be a class');null!=globalThis&&null!=(s=globalThis.expo)&&s.modules||(globalThis.expo.modules={});if(globalThis.expo.modules[u])return globalThis.expo.modules[u];return globalThis.expo.modules[u]=new o,globalThis.expo.modules[u]};var l=r(d[0])}),695,[685]);
777
+ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.registerWebModule=function(o,s){var n,u;if((0,l.ensureNativeModulesAreInstalled)(),!(s=null!=(n=s)?n:o.name))throw new Error('Web module implementation is missing a name - it is either not a class or has been minified. Pass the name as a second argument to the `registerWebModule` function.');null!=globalThis&&null!=(u=globalThis.expo)&&u.modules||(globalThis.expo.modules={});if(globalThis.expo.modules[s])return globalThis.expo.modules[s];return globalThis.expo.modules[s]=new o,globalThis.expo.modules[s]};var l=r(d[0])}),695,[685]);
778
778
  __d((function(g,r,i,a,m,e,d){}),696,[]);
779
779
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.PermissionStatus=void 0;e.PermissionStatus=(function(n){return n.GRANTED="granted",n.UNDETERMINED="undetermined",n.DENIED="denied",n})({})}),697,[]);
780
780
  __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.createPermissionHook=function(t){return function(u){return l(t,u)}};var u=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),c=r(d[4]),f=["get","request"];function l(t,l){var s=(0,c.useRef)(!0),v=(0,c.useState)(null),h=(0,o.default)(v,2),b=h[0],k=h[1],y=l||{},M=y.get,q=void 0===M||M,_=y.request,j=void 0!==_&&_,O=(0,n.default)(y,f),C=(0,c.useCallback)((0,u.default)((function*(){var u=yield t.getMethod(Object.keys(O).length>0?O:void 0);return s.current&&k(u),u})),[t.getMethod]),E=(0,c.useCallback)((0,u.default)((function*(){var u=yield t.requestMethod(Object.keys(O).length>0?O:void 0);return s.current&&k(u),u})),[t.requestMethod]);return(0,c.useEffect)((function(){j&&E(),!j&&q&&C()}),[q,j,E,C]),(0,c.useEffect)((function(){return s.current=!0,function(){s.current=!1}}),[]),[b,E,C]}}),698,[7,362,212,50,112]);
@@ -782,7 +782,7 @@ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
782
782
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useReleasingSharedObject=function(u,t){var c=(0,n.useRef)(null),l=(0,n.useRef)(!1),f=(0,n.useRef)(t);null==c.current&&(c.current=u());var o=(0,n.useMemo)((function(){var n,o,s=c.current,v=(null==(n=f.current)?void 0:n.length)===t.length&&t.every((function(n,u){return n===f.current[u]}));s&&v?l.current=!0:(null==(o=c.current)||o.release(),s=u(),c.current=s,f.current=t);return s}),t);return(0,n.useEffect)((function(){return l.current=!1,function(){!l.current&&c.current&&c.current.release()}}),[]),o};var n=r(d[0])}),700,[112]);
783
783
  __d((function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.reloadAppAsync=function(){return o.apply(this,arguments)};var n=l(r(d[1]));function o(){return o=(0,n.default)((function*(){var l,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'Reloaded from JS call';yield null==(l=globalThis.expo)?void 0:l.reloadAppAsync(n)})),o.apply(this,arguments)}}),701,[7,362]);
784
784
  __d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.UnavailabilityError=void 0;var t=e(r(d[1])),o=e(r(d[2])),n=e(r(d[3])),l=e(r(d[4])),u=e(r(d[5])),c=r(d[6]);e(r(d[7]));function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}_e.UnavailabilityError=(function(e){function c(e,t){return(0,o.default)(this,c),u=this,v=c,p=['ERR_UNAVAILABLE',`The method or property ${e}.${t} is not available on ios, are you sure you've linked all the native dependencies properly?`],v=(0,l.default)(v),(0,n.default)(u,f()?Reflect.construct(v,p||[],(0,l.default)(u).constructor):v.apply(u,p));var u,v,p}return(0,u.default)(c,e),(0,t.default)(c)})(c.CodedError)}),702,[7,15,14,25,27,30,682,680]);
785
- __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.LegacyEventEmitter=void 0;var n=t(r(d[1])),s=t(r(d[2])),o=t(r(d[3])),u=t(r(d[4])),v=r(d[5]),l='@@nativeEmitterSubscription@@';e.LegacyEventEmitter=(function(){return(0,o.default)((function t(n){if((0,s.default)(this,t),this._listenerCount=0,n.__expo_module_name__)return n;this._nativeModule=n,this._eventEmitter=new v.NativeEventEmitter(n)}),[{key:"addListener",value:function(t,s){var o=this;this._listenerCount,this._listenerCount++;var u=this._eventEmitter.addListener(t,s),v=(0,n.default)((0,n.default)({},l,u),"remove",(function(){o.removeSubscription(v)}));return v}},{key:"removeAllListeners",value:function(t){var n=this._eventEmitter.listenerCount?this._eventEmitter.listenerCount(t):this._eventEmitter.listeners(t).length;this._eventEmitter.removeAllListeners(t),this._listenerCount-=n,(0,u.default)(this._listenerCount>=0,"EventEmitter must have a non-negative number of listeners"),this._listenerCount}},{key:"removeSubscription",value:function(t){var n=t[l];n&&('remove'in n&&n.remove(),this._listenerCount--,delete t[l],t.remove=function(){},this._listenerCount)}},{key:"emit",value:function(t){for(var n,s=arguments.length,o=new Array(s>1?s-1:0),u=1;u<s;u++)o[u-1]=arguments[u];(n=this._eventEmitter).emit.apply(n,[t].concat(o))}}])})()}),703,[7,80,14,15,3,1]);
785
+ __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.LegacyEventEmitter=void 0;var n=t(r(d[1])),s=t(r(d[2])),o=t(r(d[3])),u=t(r(d[4])),v=r(d[5]),l='@@nativeEmitterSubscription@@';e.LegacyEventEmitter=(function(){return(0,o.default)((function t(n){if((0,s.default)(this,t),this._listenerCount=0,n.__expo_module_name__)return n;this._nativeModule=n,this._eventEmitter=new v.NativeEventEmitter(n)}),[{key:"addListener",value:function(t,s){var o=this;this._listenerCount,this._listenerCount++;var u=this._eventEmitter.addListener(t,s),v=(0,n.default)((0,n.default)({},l,u),"remove",(function(){o.removeSubscription(v)}));return v}},{key:"removeAllListeners",value:function(t){var n=this._eventEmitter.listenerCount?this._eventEmitter.listenerCount(t):this._eventEmitter.listeners(t).length;this._eventEmitter.removeAllListeners(t),this._listenerCount-=n,(0,u.default)(this._listenerCount>=0,"EventEmitter must have a non-negative number of listeners"),this._listenerCount}},{key:"removeSubscription",value:function(t){var n=t,s=n[l];s&&('remove'in s&&(null==s.remove||s.remove()),this._listenerCount--,delete n[l],t.remove=function(){},this._listenerCount)}},{key:"emit",value:function(t){for(var n,s=arguments.length,o=new Array(s>1?s-1:0),u=1;u<s;u++)o[u-1]=arguments[u];(n=this._eventEmitter).emit.apply(n,[t].concat(o))}}])})()}),703,[7,80,14,15,3,1]);
786
786
  __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.SafeAreaView=function(e){var f=e.style,p=void 0===f?{}:f,l=e.mode,v=e.edges,c=(0,t.default)(e,a),s=(0,n.useSafeAreaInsets)(),y=null!=v?v.reduce((function(e,t){return e|u[t]}),0):15,_=r.useMemo((function(){var e=8&y?s.top:0,t=4&y?s.right:0,r=2&y?s.bottom:0,n=1&y?s.left:0,o=i.StyleSheet.flatten(p);if('margin'===l){var a=o.margin,f=void 0===a?0:a,u=o.marginVertical,v=void 0===u?f:u,c=o.marginHorizontal,_=void 0===c?f:c,b=o.marginTop,h=void 0===b?v:b,O=o.marginRight,j=void 0===O?_:O,w=o.marginBottom,M=void 0===w?v:w,P=o.marginLeft;return[p,{marginTop:h+e,marginRight:j+t,marginBottom:M+r,marginLeft:(void 0===P?_:P)+n}]}var B=o.padding,L=void 0===B?0:B,R=o.paddingVertical,S=void 0===R?L:R,T=o.paddingHorizontal,V=void 0===T?L:T,k=o.paddingTop,W=void 0===k?S:k,z=o.paddingRight,A=void 0===z?V:z,D=o.paddingBottom,H=void 0===D?S:D,x=o.paddingLeft;return[p,{paddingTop:W+e,paddingRight:A+t,paddingBottom:H+r,paddingLeft:(void 0===x?V:x)+n}]}),[p,s,l,y]);return(0,o.jsx)(i.View,Object.assign({style:_},c))};var t=e(_r(d[1])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var i={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(i,o,a):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i})(_r(d[2])),i=_r(d[3]),n=_r(d[4]),o=_r(d[5]),a=["style","mode","edges"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}var u={top:8,right:4,bottom:2,left:1}}),704,[7,212,112,1,674,262]);
787
787
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.initialWindowSafeAreaInsets=e.initialWindowMetrics=void 0;var n=(0,r(d[0]).requireNativeModule)('RNCSafeAreaProvider'),t=e.initialWindowMetrics=null!=n?n.initialWindowMetrics:null;e.initialWindowSafeAreaInsets=null==t?void 0:t.insets}),705,[676]);
788
788
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0})}),706,[]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-dev-launcher",
3
3
  "title": "Expo Development Launcher",
4
- "version": "5.1.2",
4
+ "version": "5.1.3",
5
5
  "description": "Pre-release version of the Expo development launcher package for testing.",
6
6
  "main": "build/DevLauncher.js",
7
7
  "types": "build/DevLauncher.d.ts",
@@ -31,8 +31,8 @@
31
31
  "homepage": "https://docs.expo.dev",
32
32
  "dependencies": {
33
33
  "ajv": "8.11.0",
34
- "expo-dev-menu": "6.1.2",
35
- "expo-manifests": "~0.16.0",
34
+ "expo-dev-menu": "6.1.3",
35
+ "expo-manifests": "~0.16.1",
36
36
  "resolve-from": "^5.0.0"
37
37
  },
38
38
  "devDependencies": {
@@ -43,10 +43,10 @@
43
43
  "@testing-library/jest-native": "^4.0.4",
44
44
  "@testing-library/react-native": "^13.1.0",
45
45
  "babel-plugin-module-resolver": "^5.0.0",
46
- "babel-preset-expo": "~13.1.1",
46
+ "babel-preset-expo": "~13.1.4",
47
47
  "date-fns": "^2.28.0",
48
- "expo-dev-client-components": "2.1.0",
49
- "expo-module-scripts": "^4.1.1",
48
+ "expo-dev-client-components": "2.1.1",
49
+ "expo-module-scripts": "^4.1.2",
50
50
  "graphql": "^16.0.1",
51
51
  "graphql-request": "^3.6.1",
52
52
  "react": "19.0.0",
@@ -67,5 +67,5 @@
67
67
  "/node_modules/(?!((jest-)?react-native|@react-native(-community)?)/|@react-navigation/)"
68
68
  ]
69
69
  },
70
- "gitHead": "1914bb35d23af23078da37e70988261844436505"
70
+ "gitHead": "cb9fdd93f76f28e2ace4f66080b2386d87239553"
71
71
  }
@@ -1,3 +1,5 @@
1
+ import type { ErrorHandlerCallback } from 'react-native';
2
+
1
3
  // Similar interface to the one used in expo modules.
2
4
  type CodedError = Error & { code?: string };
3
5
 
@@ -42,7 +44,7 @@ function customizeError(error: Error | CodedError) {
42
44
  }
43
45
  }
44
46
 
45
- function errorHandler(originalHandler, error, isFatal) {
47
+ function errorHandler(originalHandler: ErrorHandlerCallback, error: any, isFatal?: boolean) {
46
48
  if (error instanceof Error) {
47
49
  // Suppresses `"main" has not been registered` error only if it was caused by a different error.
48
50
  // Otherwise, we want to show it, cause the user may forget to call `AppRegistry.registerComponent`.
@@ -59,7 +61,7 @@ function errorHandler(originalHandler, error, isFatal) {
59
61
  /**
60
62
  * @hidden
61
63
  */
62
- export function createErrorHandler(originalHandler) {
64
+ export function createErrorHandler(originalHandler: ErrorHandlerCallback): ErrorHandlerCallback {
63
65
  return (error, isFatal) => {
64
66
  if (isErrorHandlingEnabled) {
65
67
  errorHandler(originalHandler, error, isFatal);
@@ -1,5 +1,3 @@
1
- import { ErrorUtils } from 'react-native';
2
-
3
1
  import { createErrorHandler } from './DevLauncherErrorManager';
4
2
 
5
3
  const globalHandler = ErrorUtils.getGlobalHandler();