Skip to content

Dialog Component Warning: IGNORE: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. #3285

@aklkbqx

Description

@aklkbqx

Description

I ran into a problem. Warning: IGNORE: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. To use Dialog

Related to

  • [✔️] Components
  • Demo
  • Docs
  • Typings

Steps to reproduce

Expected behavior

Actual behavior

More Info

Code snippet

<Dialog
visible={dialoglVisible}
        panDirection={PanningProvider.Directions.DOWN}
        onDismiss={() => setDialoglVisible(false)}
        containerStyle={{}}
        overlayBackgroundColor="rgba(0, 0, 0, 0.5)"
        width="100%"
        height={null}
        useSafeArea={true}
        ignoreBackgroundPress={false}
      >

Screenshots/Video

Screenshot 2567-10-01 at 18 47 04

Environment

  • React Native version: 0.74.5
  • React Native UI Lib version: 7.32.0

Affected platforms

  • [✔️] Android
  • [✔️] iOS
  • [✔️] Web

Metadata

Metadata

Assignees

Labels

buga bug in one of the components

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions