score:1

Accepted answer

followed this guide here first: https://stackoverflow.com/a/44046969/3850405

added a new folder called react-image-gallery with a index.d.ts file. content:

import * as react from "react";

export class imagegallery extends react.component<any, any> {

}

export default imagegallery;

after this everything worked and the component could be imported normally with import imagegallery from 'react-image-gallery';


Related Query

More Query from same tag