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

ReactNativeToggleElement: Support for defaultProps will be removed from function components in a future major release. #33

Open
Ajithkumar2203 opened this issue Aug 12, 2024 · 3 comments

Comments

@Ajithkumar2203
Copy link

After updating react native version to the latest

"react-native": "0.74.3",

Facing an two errors

ERROR Warning: ReactNativeToggleElement: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
in ReactNativeToggleElement (created by App)
in App (created by AppHeader)

ERROR Warning: ThumbChildren: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
in ThumbChildren (created by ReactNativeToggleElement)
in RCTView (created by View)

Need update for this
"react-native-toggle-element": "^2.0.1" it is not updated i think

@natemartins
Copy link

You can refer to this comment in #32 for the fix

@mymai91
Copy link
Owner

mymai91 commented Oct 24, 2024

@Ajithkumar2203 @natemartins Thanks for your effort. I'll check it this weekend. Sorry for the delay. I'm super busy at the moment.

@mymai91
Copy link
Owner

mymai91 commented Oct 30, 2024

@Ajithkumar2203 @natemartins Please use latest version 2.1.1
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants