react-native-fabric-twitterkit
Version:
A React Native library for Sending an SMS with Callback
30 lines (27 loc) • 696 B
JavaScript
/**
* @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.
*/
;
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);
}
};