npm.io
1.0.1 • Published 8 years ago

react-native-fb-login

Licence
ISC
Version
1.0.1
Deps
0
Vulns
0
Weekly
0

React Native Facebook webview login

This package use webview to make oAuth with facebook, so you can logout then relogin with other facebook account easy by clear cookies

Install

npm install react-native-fb-login --save
or
yarn add react-native-fb-login

Usage:

See example

Logout

To logout use clear cookies by using https://github.com/shimohq/react-native-cookie

import Cookie from 'react-native-cookie'

  logout() {
    Cookie.clear().then(() => {
      this.setState({ token: null })
    })
  }

Keywords