wix / react-native-ui-lib

UI Components Library for React Native
https://wix.github.io/react-native-ui-lib/
MIT License
6.46k stars 707 forks source link

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 aklkbqx opened 1 day ago

aklkbqx commented 1 day ago

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

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

Affected platforms

emiliogaines commented 1 day ago

Experiencing the same issue.

<Dialog visible={true} />