vivaxy / react-native-auto-height-image

🖼️React native auto height image
https://github.com/vivaxy/react-native-auto-height-image
MIT License
339 stars 76 forks source link

Warning: Support for defaultProps will be removed from function components #126

Open kashmiry opened 1 month ago

kashmiry commented 1 month ago

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):

sbaiahmed1 commented 1 month ago

I have submitted a pr hoping it will be merged soon https://github.com/vivaxy/react-native-auto-height-image/pull/127

sbaiahmed1 commented 1 month ago

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