photo-sdk
v0.0.4
Published
# Install
Downloads
4
Readme
photo-sdk
Install
yarn add photo-sdk
or
npm install photo-sdk
Usage in web
import sdk, { launch, stop, init, } from 'photo-sdk'
sdk.init('api_key') // or init('api_key)
sdk.launch() // or launch()
sdk.stop() // or stop()
Usage with react-native
import sdk, { launch, stop, init, withPhoto } from 'photo-sdk'
//......
AppRegistry.registerComponent(appName, () => withPhoto()(Root))
//......
sdk.init('api_key') // or init('api_key)
sdk.launch() // or launch()
sdk.stop() // or stop()