Skip to content

Commit

Permalink
Change Promise import syntax (#48725)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #48725

Changelog:
[Internal] - Changed Promise import syntax

Reviewed By: cipolleschi

Differential Revision: D68214422

fbshipit-source-id: 1a92449dfae85148c680e449348fef0830c38769
  • Loading branch information
coado authored and facebook-github-bot committed Jan 16, 2025
1 parent 918638c commit c720000
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-native/Libraries/Promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

'use strict';

const Promise = require('promise/setimmediate/es6-extensions');
import Promise from 'promise/setimmediate/es6-extensions';

require('promise/setimmediate/finally');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
"
`;

Expand Down

0 comments on commit c720000

Please sign in to comment.