react-dropzone-uploader icon indicating copy to clipboard operation
react-dropzone-uploader copied to clipboard

React Native Support

Open SMAsadAli opened this issue 3 years ago • 0 comments

I was trying to make the basic component work on react native project

const Standard = () => {
  const getUploadParams = () => {
    return { url: 'https://httpbin.org/post' }
  }

  const handleChangeStatus = ({ meta }, status) => {
    console.log(status, meta)
  }

  const handleSubmit = (files, allFiles) => {
    console.log(files.map(f => f.meta))
    allFiles.forEach(f => f.remove())
  }

  return (
    <Dropzone
      getUploadParams={getUploadParams}
      onChangeStatus={handleChangeStatus}
      onSubmit={handleSubmit}
      styles={{ dropzone: { minHeight: 200, maxHeight: 250 } }}
    />
  )
}

<Standard />

and it is throwing me this error constantly.

Screenshot 2022-06-06 at 12 31 24 PM

SMAsadAli avatar Jun 06 '22 07:06 SMAsadAli