merryjs / photo-viewer

A photo picture viewer for React Native

Home Page:https://merryjs.github.io/photo-viewer/interfaces/merryphotoviewporps.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImageSourcePropType is deprecated in RN 0.58.3

ashubits11 opened this issue · comments

I was updating my application to latest version of react native, After update i am getting error ImageSourcePropType not found.
In your package you have use
const ImageSourcePropType = require("react-native/Libraries/Image/ImageSourcePropType");
Which is no more available.
Please check in following url:-
https://github.com/facebook/react-native/tree/master/Libraries/Image

Same here. Please are there plans to update this library to React Native 0.58.x?

Hi, I've made a pull request to fix this issue (#70 ). You can use this version by appending #refs/pull/70/head to the @merryjs/photoviewer dependencies in package.json so it looks like this

...
"@merryjs/photo-viewer": "merryjs/photo-viewer#refs/pull/70/head"
...