How works with react ionic native elements

I had problems with react in ionic to use de File transfer someone can help me?

import { FileTransfer, FileUploadOptions, FileTransferObject } from '@ionic-native/file-transfer';
export class FileFormPage extends React.Component<{},
    {   http:HTTP,
        file: any,
        showToast1: boolean,
        loginMessage: string,
        hiddenbar: boolean,
    }> {
    constructor(props: any,private http: HTTP,private transfer: FileTransfer) {
        super(props);
        this.state = {
            http:http,
            file: '',
            showToast1: false,
            loginMessage: '',
            hiddenbar: true,
        }
    }
    async handleSubmit(e: FormEvent) {
        e.preventDefault();
        try {
            const fileTransfer: FileTransferObject = **this.transfer.create();** "Cannot read property 'create' of undefined"
 or if i change the import 
> TypeScript error in /Users/jhoncasallas/Documents/OwnCode/VecinoIonic/src/components/FileForm.tsx(22,69):
> Cannot find module '@ionic-native/file-transfer/ngx'.  TS2307
>     20 | import { execFile } from 'child_process';
>     21 | import { File } from '@ionic-native/file';
>   > 22 | import { FileTransfer, FileUploadOptions, FileTransferObject } from '@ionic-native/file-transfer/ngx'

Can you please provide a sample project? What you’ve provided is not clear and doesn’t tell us a whole lot.

import {
  FileTransfer,
  FileUploadOptions,
  FileTransferObject
} from "@ionic-native/file-transfer";
import { File } from "@ionic-native/file";

and make sure you are installing all of the proper libraries

npm install cordova-plugin-file-transfer
npm install @ionic-native/file-transfer
npm install cordova-plugin-file
npm install @ionic-native/file
npm install @ionic-native/core

then your code is changed

  const download = () => {
    console.log("download");
    let fileTransfer = FileTransfer.create();
    const url = "https://www.postfun.com/wp-content/uploads/2019/09/Hickory-horned-devil-82819.jpg";
    fileTransfer.download(url, File.tempDirectory + "file.jpg", true).then(
      entry => {
        console.log("download complete: " + entry.toURL());
      },
      error => {
        // handle error
        console.log("error", error);
      }
    );
  };