Open Hassan-jr opened 2 years ago
@Hassan-jr there was a PR to fix this issue https://github.com/wonday/react-native-pdf/pull/650
It has been merged, but the problem is that the library version hasn't been popped up.
For the time being, you might use the following in your package.json "react-native-pdf": "https://github.com/wonday/react-native-pdf.git"
But the question is still open. Who's gonna pop up the lib version?
i solved it by adding the library deprecated-react-native-prop-types and with in the node_module/react-native-pdf all the ViewPropTypes are taken from react-native core ..remove them and then use import {ViewPropTypes} from 'deprecated-react-native-prop-types' with all the files ...it solve in my case...
Looking forward to a new release with PR #650 merged :heart:
It seems that the problem is solved. Great thanks!
importing ViewPropTypes is causing errors because of depreciated importation form react native instead of deprecated-react-native-prop-types
this is the old way and its depreciated
import {ViewPropTypes} from "react-native"
This is the new way
import {ViewPropTypes} from 'deprecated-react-native-prop-types'
Please Update