Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 894 Bytes

README.md

File metadata and controls

43 lines (31 loc) · 894 Bytes

aviary-react

Show an aviary control component on a React project

NPM JavaScript Style Guide

Install

npm install --save aviary-react
yarn add aviary-react

Usage

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

License

MIT © danielniquet