Skip to content

BottomModal is missing from type def #289

Description

@sflahave

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 {}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions