Is there an existing issue for this?
Explain what you did
Including a diaglog with a button.
Expected behavior
No error warning, due to depreaction
Describe the bug
Following message arises:
Warning: Dialog.Button: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
in Dialog.Button
Here my code snippet:
<Dialog
isVisible={isVisibleDialog}
onBackdropPress={() => setVisibleDialog(false)}
>
<Dialog.Title
title="Change name"
titleStyle={{color: theme.colors.black}}
/>
<Input
name={'Name'}
onChangeText={onChangeTextDialog}
>{categoryDialog.name}</Input>
<Dialog.Button title='OK' onPress={() => updateCategoryName({ category: categoryDialog, newName: textDialog })} disabled={(categoryDialog.name === textDialog) ? true : false} />
<Dialog.Button title='Abbruch' onPress={() => setVisibleDialog(false)} />
</Dialog>
Steps To Reproduce
See warning from react native console:
Warning: Dialog.Button: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
in Dialog.Button
### Screenshots
_No response_
### Your Environment
<details>
<summary>`npx @rneui/envinfo`</summary>
React Native Elements Env Info
Global Dependencies:
No related dependency found
Local Dependencies:
- @rneui/base : ^4.0.0-rc.7
- @rneui/themed : ^4.0.0-rc.8
- @types/react : ~18.2.45
- expo : ~51.0.22
- react : 18.2.0
- react-native : 0.74.3
Is there an existing issue for this?
Explain what you did
Including a diaglog with a button.
Expected behavior
No error warning, due to depreaction
Describe the bug
Following message arises:
Here my code snippet:
Steps To Reproduce
See warning from react native console: Warning: Dialog.Button: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. in Dialog.ButtonReact Native Elements Env Info
Global Dependencies:
No related dependency found
Local Dependencies: