ViewPropTypes has been deprecated in React Native
See original GitHub issueUsing 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:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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
#247 it works well on my project. Could you please the new version 🙏