# react-native-twitter-sdk

> Twitter SDK support for React Native apps.

Latest version **0.1.6** (published 2019-01-11) · MIT License license · 0 weekly downloads

## Install

```sh
npm install react-native-twitter-sdk
pnpm add react-native-twitter-sdk
yarn add react-native-twitter-sdk
bun add react-native-twitter-sdk
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2019-01-11 |
| First published | 2018-03-03 |
| Weekly downloads | 0 |
| License | MIT License |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 19.9 KB |
| Known vulnerabilities | 0 (+9 in 3 direct dependencies) |
| Install scripts | no |
| Author | Ato |
| Maintainers | bbdroid |
| Keywords | react, react-native, react-component, ios, android, twitter, core |

## Links

- npm: https://www.npmjs.com/package/react-native-twitter-sdk
- Repository: https://github.com/atoami/react-native-twitter-sdk
- Homepage: https://github.com/atoami/react-native-twitter-sdk/
- Issues: https://github.com/atoami/react-native-twitter-sdk/issues
- npm.io page: https://npm.io/package/react-native-twitter-sdk

## Dependencies (7)

- [got](https://npm.io/package/got.md) ^7.0.0
- [pump](https://npm.io/package/pump.md) ^1.0.2
- [plist](https://npm.io/package/plist.md) ^2.1.0
- [xcode](https://npm.io/package/xcode.md) ^0.9.3
- [adm-zip](https://npm.io/package/adm-zip.md) ^0.4.7
- [fastfall](https://npm.io/package/fastfall.md) ^1.5.1
- [progress](https://npm.io/package/progress.md) ^2.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.6 (latest) — 2019-01-11
- 0.1.3 — 2018-03-05
- 0.1.2 — 2018-03-05
- 0.1.1 — 2018-03-05
- 0.1.0 — 2018-03-03

## README

# React Native TwitterSDK [iOS Only]
React Native TwitterSDK is a wrapper around the iOS Twitter SDK.

## Installation

Using npm:

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

## Linking

### Manually

Download and add Twitter Kit to your project:
* Download [Twitter Kit](https://ton.twimg.com/syndication/twitterkit/ios/3.3.0/Twitter-Kit-iOS.zip) 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](https://github.com/twitter/twitter-kit-ios/wiki/Installation#initialize-twitter-kit)
2. [Configure Info.Plist](https://github.com/twitter/twitter-kit-ios/wiki/Installation#configure-infoplist)
3. [Handling Log in Redirect](https://github.com/twitter/twitter-kit-ios/wiki/Log-In-With-Twitter#handling-log-in-redirect)

```
import { TwitterLoginManager } from 'react-native-twitter-sdk';

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

## Copyright and license

Code released under [the MIT license](https://github.com/atoami/react-native-twitter-sdk/blob/master/LICENSE).

## Inspiration

[react-native-fbsdk](https://github.com/facebook/react-native-fbsdk)

---
_Source: https://npm.io/package/react-native-twitter-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
