Skip to content

Modal props missing from Hint component #3938

@tmac24utm

Description

@tmac24utm

Description

There's no ability to pass modal props to the Hint component and this causes an issue with my app due to needing to add supportedOrientations

Related to

  • Components
  • Demo
  • Docs
  • Typings

Steps to reproduce

  1. Set up an app that is locked to landscape. For example in expo set this value in your app config: orientation: "landscape"
  2. Add a hint component that uses a modal. This happens to me as long as I provide the prop onBackgroundPress i.e. I don't need to pass useModal to get this error
  3. On dismissing the hint, see the following error
Image

Expected behavior

Allow passing modalProps, similar to the Dialog component

Environment

expo: ~54.0.25
react-native-ui-lib: 8.2.2
uilib-native: 5.0.1

Affected platforms

  • Android
  • iOS
  • Web

Metadata

Metadata

Assignees

No one assigned

    Labels

    buga bug in one of the components

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions