-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathTwitter.js
More file actions
29 lines (27 loc) · 696 Bytes
/
Twitter.js
File metadata and controls
29 lines (27 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* @providesModule Twitter
*
* Modifications:
* Copyright (C) 2016 Sony Interactive Entertainment Inc.
* Licensed under the MIT License. See the LICENSE file in the project root for license information.
*/
'use strict';
var { NativeModules } = require('react-native');
var SMXTwitter = NativeModules.SMXTwitter;
module.exports = {
login: function (cb) {
SMXTwitter.login(cb);
},
fetchProfile: function (cb) {
SMXTwitter.fetchProfile(cb);
},
fetchTweet: function (options, cb) {
SMXTwitter.fetchTweet(options, cb);
},
logOut: function () {
SMXTwitter.logOut();
},
composeTweet: function (options, cb) {
SMXTwitter.composeTweet(options, cb);
}
};