diff --git a/packages/react-native/Libraries/Promise.js b/packages/react-native/Libraries/Promise.js index a222b520f0c683..29252a301b01e5 100644 --- a/packages/react-native/Libraries/Promise.js +++ b/packages/react-native/Libraries/Promise.js @@ -10,7 +10,7 @@ 'use strict'; -const Promise = require('promise/setimmediate/es6-extensions'); +import Promise from 'promise/setimmediate/es6-extensions'; require('promise/setimmediate/finally'); diff --git a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap index f6b77a84c4c742..4da9beee52d9e8 100644 --- a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap +++ b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap @@ -7201,8 +7201,7 @@ exports[`public API should not change unintentionally Libraries/Pressability/use `; exports[`public API should not change unintentionally Libraries/Promise.js 1`] = ` -"declare const Promise: $FlowFixMe; -declare export default typeof Promise; +"declare export default typeof Promise; " `;