diff --git a/tests/app.js b/tests/app.js index 73ae8844b7..0fd79790e5 100644 --- a/tests/app.js +++ b/tests/app.js @@ -21,13 +21,6 @@ import { StyleSheet, View, StatusBar, AppRegistry, LogBox } from 'react-native'; import { JetProvider, ConnectionText, StatusEmoji, StatusText } from 'jet'; -// react-native-macos 0.77.0 - pops an empty, non-dismissable logbox -// logged as https://github.com/microsoft/react-native-macos/issues/2376 -if (Platform.other) { - // ...unless you ignore all logs in logbox - LogBox.ignoreAllLogs(); -} - const platformSupportedModules = []; if (Platform.other) { diff --git a/tests/patches/react-native-macos+0.77.0.patch b/tests/patches/react-native-macos+0.77.0.patch index 344bd35e02..1a3181195c 100644 --- a/tests/patches/react-native-macos+0.77.0.patch +++ b/tests/patches/react-native-macos+0.77.0.patch @@ -26,3 +26,16 @@ index f4c5ed3..7628f81 100644 } if (part instanceof Blob) { return { +diff --git a/node_modules/react-native-macos/Libraries/Utilities/Platform.macos.js b/node_modules/react-native-macos/Libraries/Utilities/Platform.macos.js +index 3b1e7cd..e5a1274 100644 +--- a/node_modules/react-native-macos/Libraries/Utilities/Platform.macos.js ++++ b/node_modules/react-native-macos/Libraries/Utilities/Platform.macos.js +@@ -84,7 +84,7 @@ const Platform: PlatformType = { + }, + select: (spec: PlatformSelectSpec): T => + // $FlowFixMe[incompatible-return] +- 'ios' in spec ? spec.macos : 'native' in spec ? spec.native : spec.default, ++ 'macos' in spec ? spec.macos : 'native' in spec ? spec.native : spec.default, + }; + + module.exports = Platform;