mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 12:45:37 +08:00
Open source Android date and time pickers
Reviewed By: bestander Differential Revision: D2856486 fb-gh-sync-id: 0bb81136289e2f121387649765ba682103e4701b
This commit is contained in:
committed by
facebook-github-bot-8
parent
5f0ef12cb5
commit
9a0539d2c4
@@ -26,10 +26,10 @@ module.exports = {
|
||||
*/
|
||||
getString() {
|
||||
if (arguments.length > 0) {
|
||||
let callback = arguments[0];
|
||||
console.warn('Clipboard.getString(callback) is deprecated. Use the returned Promise instead');
|
||||
Clipboard.getString().then(callback);
|
||||
return;
|
||||
let callback = arguments[0];
|
||||
console.warn('Clipboard.getString(callback) is deprecated. Use the returned Promise instead');
|
||||
Clipboard.getString().then(callback);
|
||||
return;
|
||||
}
|
||||
return Clipboard.getString();
|
||||
},
|
||||
@@ -40,7 +40,7 @@ module.exports = {
|
||||
* Clipboard.setString('hello world');
|
||||
* }
|
||||
* ```
|
||||
* @param this parameter is content that will be set into clipboard.
|
||||
* @param the content to be stored in the clipboard.
|
||||
*/
|
||||
setString(content) {
|
||||
Clipboard.setString(content);
|
||||
|
||||
Reference in New Issue
Block a user