Skip to content

Commit

Permalink
[Bug] Fix unexpected internal error related to 'reactNativeVersionWar…
Browse files Browse the repository at this point in the history
…nings' (#2005)

Fixes #1998
  • Loading branch information
benjaminbi committed Jul 25, 2023
1 parent f5fe982 commit 50a7f6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/extension/exponent/xdlInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ export const getNgrokResolver: () => Promise<XDLPackage.ResolveNgrok> =
export type IUser = XDLPackage.IUser;

export async function configReactNativeVersionWarnings(): Promise<void> {
(await getXDLPackage()).Config.validation.reactNativeVersionWarnings = false;
const xdlPackage = await getXDLPackage();
if (xdlPackage.Config.validation !== undefined) {
xdlPackage.Config.validation.reactNativeVersionWarnings = false;
}
}

export async function attachLoggerStream(
Expand Down

0 comments on commit 50a7f6e

Please sign in to comment.