react-native-modals
react-native-modals copied to clipboard
BottomModal is missing from type def
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 {}
}