mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Change Promise import syntax (#48725)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48725 Changelog: [Internal] - Changed Promise import syntax Reviewed By: cipolleschi Differential Revision: D68214422 fbshipit-source-id: 1a92449dfae85148c680e449348fef0830c38769
This commit is contained in:
committed by
Facebook GitHub Bot
parent
918638c1be
commit
c720000ae0
+1
-1
@@ -10,7 +10,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
const Promise = require('promise/setimmediate/es6-extensions');
|
||||
import Promise from 'promise/setimmediate/es6-extensions';
|
||||
|
||||
require('promise/setimmediate/finally');
|
||||
|
||||
|
||||
@@ -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;
|
||||
"
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user