Skip to content

Commit 554edcf

Browse files
Fix Android Build on 0.80
1 parent 66708e3 commit 554edcf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/react-native/Libraries/Utilities/Platform.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type PlatformConstants = {
3030
interface PlatformStatic {
3131
isTV: boolean;
3232
isTesting: boolean;
33-
Version: number | string | undefined;
33+
Version: number | string ;
3434
constants: PlatformConstants;
3535

3636
/**
@@ -92,9 +92,8 @@ interface PlatformWindowsOSStatic extends PlatformStatic {
9292
};
9393
}
9494

95-
interface PlatformWebStatic extends PlatformStatic {
95+
interface PlatformWebStatic extends Omit<PlatformStatic, 'Version'> {
9696
OS: 'web';
97-
Version: undefined;
9897
}
9998

10099
export type Platform =

0 commit comments

Comments
 (0)