react-native/Libraries/Utilities
Dave Miller c9a1956c4f Fix promises on iOS to no longer wrap values in Arrays
Summary:
public
In 9baff8f437 (diff-8d9841e5b53fd6c9cf3a7f431827e319R331), I incorrectly assumed that iOS was wrapping promises in an extra Array.  What was really happening is that all the callers were doing this.  I removed the wrapping in the callers and the special case handling MessageQueue.

Now one can pass whatever object one wants to resolve and it will show properly in the resolve call on the js side.  This fixes issue https://github.com/facebook/react-native/issues/5851

Reviewed By: nicklockwood

Differential Revision: D2921565

fb-gh-sync-id: 9f81e2a87f6a48e9197413b843e452db345a7ff9
shipit-source-id: 9f81e2a87f6a48e9197413b843e452db345a7ff9
2016-02-10 07:25:35 -08:00
..
__mocks__ Add guard to ErrorUtils mock 2016-01-28 12:08:50 -08:00
__tests__ Updates for haste2 inside of jest 2016-01-08 06:52:29 -08:00
differ [ReactNative] Fix warnings w/h => width/height 2015-05-02 10:22:59 -08:00
Alert.js Simplified AlertIOS 2016-01-21 10:57:26 -08:00
AlertIOS.js Simplified AlertIOS 2016-01-21 10:57:26 -08:00
BackAndroid.android.js Snapshot the Set of listeners when dispatching a BackAndroid event 2016-02-08 03:23:35 -08:00
BackAndroid.ios.js RN: Remove BackAndroid Warning 2015-11-12 13:24:27 -08:00
CPUProfiler.js Add NativeProfiling module that uses RN nativeProfiler or console.profile 2015-11-27 04:44:25 -08:00
CSSVarConfig.js Bugfix - Typos 2015-12-15 09:09:32 -08:00
Dimensions.js Add example of getting window dimensions to Dimensions docs. 2015-12-23 10:07:12 -08:00
ErrorUtils.js [Cosmetic] Fixing comment typo 2015-06-02 20:23:34 -08:00
HMRClient.js Hot Loading Indicators 2016-02-01 12:42:33 -08:00
MatrixMath.js Fix the perspective projection 2016-02-08 15:06:32 -08:00
MessageQueue.js Fix promises on iOS to no longer wrap values in Arrays 2016-02-10 07:25:35 -08:00
PerformanceLogger.js Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
PixelRatio.js PixelRatio.pixel() 2016-01-15 05:15:31 -08:00
Platform.android.js Make CameraRoll work with Promises 2016-01-21 08:07:41 -08:00
Platform.ios.js Flowify Library/Utilities/ 2015-03-23 16:47:26 -08:00
RCTLog.js Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
RCTRenderingPerf.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
Systrace.js Backout "Use numeric identifiers when building a bundle" 2016-01-22 11:39:30 -08:00
UIManager.js Added setChildren() function 2015-12-15 06:56:31 -08:00
buildStyleInterpolator.js Bugfix - Typos 2015-12-15 09:09:32 -08:00
createStrictShapeTypeChecker.js fix library/utility lint warnings 2015-11-30 16:15:30 -08:00
cssVar.js [ReactNative] OSS JSNavigationStack w/ Examples 2015-03-24 09:39:40 -08:00
deepFreezeAndThrowOnMutationInDev.js Flowify Library/Utilities/ 2015-03-23 16:47:26 -08:00
deprecatedPropType.js Add a deprecatedPropType module to show deprecation warnings 2016-01-29 02:05:38 -08:00
dismissKeyboard.js [ReactNative] Sync [react_native] Fix keyboard behavior for android 2015-08-14 02:58:37 -08:00
groupByEveryN.js Flowify Library/Utilities/ 2015-03-23 16:47:26 -08:00
logError.js Flowify Library/Utilities/ 2015-03-23 16:47:26 -08:00
mapWithSeparator.js select up and down the inspector hierarchy 2015-06-04 10:18:56 -08:00
mergeFast.js Fix typo 2015-08-06 20:22:24 -08:00
mergeIntoFast.js Bugfix - Typos 2015-12-15 09:09:32 -08:00
stringifySafe.js [ReactNative] improve console logging a little bit 2015-05-04 18:57:03 -08:00
truncate.js Bugfix - Typos 2015-12-15 09:09:32 -08:00