Show an aviary control component on a React project
npm install --save aviary-react
yarn add aviary-react
import React, { Component } from 'react'
import AviaryReact from 'aviary-react'
class Example extends Component {
onSave = (URL)=>{
//You receive S3 URL
console.log(URL)
}
render () {
return (
<AviaryReact apiKey="myAPIkeyFromCreativeSDK" onSave={this.onSave} file={myFile} />
)
}
}
apiKey - Mandatory onSave - to receive the generated URL file - (optional) in case you want to pass a file
MIT © danielniquet