react-native-modals icon indicating copy to clipboard operation
react-native-modals copied to clipboard

BottomModal is missing from type def

Open sflahave opened this issue 2 years ago • 0 comments

I'm seeing the following error in a Typescript-based React Native project:

Module '"react-native-modals"' has no exported member 'BottomModal'. Did you mean to use 'import BottomModal from "react-native-modals"' instead?

I found a work-around by creating my own type def file for the module with the following:

declare module 'react-native-modals' {
  export class BottomModal extends Modal {}
}

sflahave avatar Nov 13 '21 20:11 sflahave