ihor / react-native-scalable-image

React Native Image component which scales width or height automatically to keep the original aspect ratio
https://www.npmjs.com/package/react-native-scalable-image
MIT License
315 stars 67 forks source link

react 17 #41

Open Tohar-Ts opened 2 years ago

Tohar-Ts commented 2 years ago

I can't install the package because it breaks the dependency tree, since it only supports react ^16, can you update the dependency for this package?

marcosPerezRubio commented 1 year ago

Looking the same issue for React 18!

Is there anything we can do to help with it?

fmaylinch commented 1 year ago

As a workaround, I copied the index.js and index.d.ts files to my project into components/scalable-image/. Then imported it with:

import Image from '../components/scalable-image';