react-native-PDFView icon indicating copy to clipboard operation
react-native-PDFView copied to clipboard

React Native 0.68.2: "Warning: ViewPropTypes will be removed from React Native."

Open JoniVR opened this issue 3 years ago • 3 comments

Describe the bug I just upgraded to React Native 0.68.2, and got the following warning: ViewPropTypes will be removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.

The stacktrace traced back to this (awesome and much appreciated) library. If I do a search query, I can indeed find the offending lines.

To Reproduce

  • [ ] I checked the demo project and cannot reproduce the issue
  • [ ] I checked the demo project and the issue exists

Seems not relevant as demo project isn't up-to-date yet.

Steps to reproduce the behavior:

  1. Use the library in a project with React native 0.68.2 or higher (not sure which exact version started it).
  2. See warning

Expected behavior No warnings

Screenshots image

Smartphone (please complete the following information):

  • Device: iPad Air 5th generation
  • OS: iOS
  • Version 15.4

Though it'll be present on all brands and devices probably.

Additional context The warning itself suggests using 'deprecated-react-native-prop-types', but perhaps a better migration path is possible? (thinking Typescript for example)

JoniVR avatar May 12 '22 09:05 JoniVR

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 12 '22 19:06 stale[bot]

Not stale.....

JoniVR avatar Jun 29 '22 11:06 JoniVR

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '22 13:08 stale[bot]

Fixed in 0.14.0

rumax avatar Aug 15 '22 18:08 rumax