From 77f2cb27be5492338544cff5052796994df9b240 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Sun, 18 May 2025 08:08:24 -0700 Subject: [PATCH] RN: Migrate to ESM - BackHandler (#51439) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51439 Migrates the `BackHandler` mock to use ESM to mitigate the existing lint warning. I'm actually not sure this is even used anywhere… and the unmocked `BackHandler` is already using ESM. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D74949885 fbshipit-source-id: 7f37212db2125bb7afdbd342175e3beae6c7c14f --- .../react-native/Libraries/Utilities/__mocks__/BackHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/Utilities/__mocks__/BackHandler.js b/packages/react-native/Libraries/Utilities/__mocks__/BackHandler.js index bc5bc62dfea..426bb6ed8c6 100644 --- a/packages/react-native/Libraries/Utilities/__mocks__/BackHandler.js +++ b/packages/react-native/Libraries/Utilities/__mocks__/BackHandler.js @@ -42,4 +42,4 @@ const BackHandler = { }, }; -module.exports = BackHandler; +export default BackHandler;