Small library for authentication to Dropbox with React Native.
import DropboxAutent from 'dropbox-autent'
DropboxAutent({apiKey: API_KEY, redirectUrl: 'oauth2todo://foo'})(App)
Your have to set 2 parameters in hash:
apiKey
is an api kay for your Dropbox Application.redirectUrl
is redirect url. It should be set in Dropbox. Read here for more information.
App
- is your React component which will be called after authentication
See TodoList example in 'example' folder.