Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-twitter-sdk

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-twitter-sdk

Twitter SDK support for React Native apps.

  • 0.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

React Native TwitterSDK [iOS Only]

React Native TwitterSDK is a wrapper around the iOS Twitter SDK.

Installation

Using npm:

npm install --save react-native-twitter-sdk

Linking

Manually

Download and add Twitter Kit to your project:

  • Download Twitter Kit and unzip under ~/Documents/TwitterSDK directory on your Mac.
  • Drag contents to the root of your project in Xcode
  • Make sure that ~/Documents/TwitterSDK is in the Framework Search Path of your build target's Build Settings.

In XCode, in the project navigator:

  • Right click Libraries
  • Add Files to [your project's name]
  • Go to node_modules/react-native-twitter-sdk/ios
  • Add the .xcodeproj file
  • Add the libRNTwitterSDK.a from the RNTwitterSDK project to your project's Build Phases ➜ Link Binary With Libraries

In XCode, in the project navigator, select your project.

  • Add TwitterKit to "Embedded Binaries" in your Xcode project settings
  • Add TwitterKit and TwitterCore to "Linked Frameworks and Libraries" in your Xcode project settings

Usage

Complete the following steps.

  1. Initialize Twitter Kit
  2. Configure Info.Plist
  3. Handling Log in Redirect
import { TwitterLoginManager } from 'react-native-twitter-sdk';

TwitterLoginManager.logIn()
  .then(result => console.log(result))
  .catch((error) => console.log(error));

Code released under the MIT license.

Inspiration

react-native-fbsdk

Keywords

FAQs

Package last updated on 11 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc