Brian Vaughn
848593c0f0
Moved takeSnapshot method from UIManager to ReactNative
...
Reviewed By: spicyj
Differential Revision: D4767428
fbshipit-source-id: 77c80c0135641ab46f9dce2763f27499a96373a0
2017-03-25 00:46:54 -07:00
Bhuwan Khattar
a23a3c319c
Add @providesModule annotations
...
Summary: Adding providesModule annotations to files that don't have a `providesModule` annotation but are in directories that packager crawls.
Reviewed By: cpojer
Differential Revision: D4612455
fbshipit-source-id: b23f0d6bbe2d26f480e93b56b67c6c8b1075e9f7
2017-02-27 14:04:56 -08:00
Peter W
1beb6274b8
Clarify ActionSheetIOSExample.js
...
Summary:
The `successCallback` passed via `static showShareActionSheetWithOptions(options, failureCallback, successCallback)` has two parameters (see [native code](https://github.com/facebook/react-native/blob/e1577df1fd70049ce7f288f91f6e2b18d512ff4d/Libraries/ActionSheetIOS/RCTActionSheetManager.m#L174 )), and the name used for the first parameter in the JS example is confusing. This fixes that.
The first parameter is a boolean indicating whether the user completed the sharing (when TRUE) or cancelled it (when FALSE). Instead of calling it "success" in the example, I propose using `completed`, which is more in line with what you see in the native code.
Otherwise, we have a "successCallback" function whose first parameter tells us if we were "successful", and that's confusing (indeed, I think it already caused some confusion in the [react-native-share](https://github.com/EstebanFuentealba/react-native-share/ ) module: see [this issue](https://github.com/EstebanFuentealba/react-native-share/issues/48 )).
Closes https://github.com/facebook/react-native/pull/11914
Differential Revision: D4490039
Pulled By: mkonicek
fbshipit-source-id: 5d7f01eae760e3fb271e7fa080c2f0147c53418a
2017-01-31 13:28:32 -08:00
Konstantin Raev
6ea26c01de
Reverted commit D4027388
...
Reviewed By: yungsters
Differential Revision: D4027388
fbshipit-source-id: 8e3341b6f393ccf432c1a4e22a7cbf422284a06f
2016-10-16 04:13:42 -07:00
Jan Kassens
e58d17e68b
React.Element<any> » React.Element<*>
...
Reviewed By: yungsters
Differential Revision: D4027388
fbshipit-source-id: 5bc178eab1ab72283622b4b7d418f9fd43ec0792
2016-10-15 17:58:38 -07:00
Tim Yung
e8198aed8d
Cleanup: Prefer React.Element over React$?Element
...
Reviewed By: vjeux
Differential Revision: D4013049
fbshipit-source-id: 18a447fdbc584418d6a51770363bcd221e7fb7dc
2016-10-14 08:59:37 -07:00
Ben Alpert
a2fb703bbb
Convert from React.createClass to ES6 classes
...
Reviewed By: cpojer
Differential Revision: D3619143
fbshipit-source-id: e14e81468d467437ee3d79c34c34b7780a46ca1c
2016-07-26 01:13:31 -07:00
Pieter De Baets
2f73ca8f76
Cleanup UIExplorer folder
...
Summary: Move all JS to a js/ subfolder so we get some overview of this folder again.
Reviewed By: bestander
Differential Revision: D3542598
fbshipit-source-id: 7637133fe4152f4d39e461b443b38510272d5bc8
2016-07-12 05:59:13 -07:00