question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ViewPropTypes has been deprecated in React Native

See original GitHub issue

Using React Native 0.62.2 PropTypes has been deprecated and will be removed https://github.com/react-native-community/discussions-and-proposals/issues/29

We are using this package with React native web and after 0.12 release it throws an error: node_modules/react-native-circular-progress/src/CircularProgress.js Attempted import error: 'ViewPropTypes' is not exported from 'react-native-web/dist/index'.

As they have already removed the PropTypes from their exports.

a possible npm script fix: "fix:react-native-circular-progress": "sed -e \"s/ViewPropTypes.style,/PropTypes.object,/g\" -i.bak ./node_modules/react-native-circular-progress/src/CircularProgress.js",

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Stoneski93commented, Dec 3, 2020

@lavor To work it on react-native-web you need also https://github.com/bakerface/react-native-svg-web @markusl When that fix will be release?

In CircuralProgress still got something like that for version 1.3.6 image

0reactions
hotchpotchcommented, Jan 12, 2021

#247 it works well on my project. Could you please the new version 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

ViewPropTypes will be removed from React Native. Migrate to ...
ViewPropTypes will be removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.
Read more >
ViewPropTypes will be removed from React ... - Stack Overflow
ViewPropTypes will be removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types · Solution:.
Read more >
deprecated-react-native-prop-types - npm
Deprecated prop-types from React Native.. Latest version: 4.0.0, last published: 11 days ago. Start using deprecated-react-native-prop-types ...
Read more >
invariant violation viewproptypes has been removed from ...
Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.
Read more >
deprecated-react-native-prop-types | Yarn - Package Manager
Merged Android and default definitions. Included all of ViewPropTypes . Improved types for defaultSource and source . Added alt , crossOrigin , height...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found