Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks
aklkbqx opened this issue Oct 1, 2024 · 1 comment
Labels
bug a bug in one of the components

Comments

@aklkbqx
Copy link

aklkbqx commented Oct 1, 2024

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
@aklkbqx aklkbqx added the bug a bug in one of the components label Oct 1, 2024
@emiliogaines
Copy link

Experiencing the same issue.

<Dialog visible={true} />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a bug in one of the components
Projects
None yet
Development

No branches or pull requests

2 participants