vivaxy/react-native-auto-height-image

Warning: Support for defaultProps will be removed from function components

Opened this issue · 3 comments

Describe the bug
After upgrading to RN 0.74 Now I receive these warnings, in screens where the component is present.

 ERROR  Warning: AnimatableImage: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
    in AnimatableImage (created by ImagePolyfill)
    in ImagePolyfill (created by AutoHeightImage)
    in AutoHeightImage (created by ErrorableImage)

Dependencies versions (please complete the following information):

  • react: 18.2.0
  • react-native: 0.74.6

I have submitted a pr hoping it will be merged soon #127

@vivaxy can you please see the PR when you got time :D thank you

Same error here, some fix?