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 will be removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.

See original GitHub issue

Is this a bug report, a feature request, or a question?

Bug Report

Have you followed the required steps before opening a bug report?

(Check the step you’ve followed - put an x character between the square brackets ([]).)

Have you made sure that it wasn’t a React Native bug?

Yes, it’s a warning from React Native about something carousel is using that’s going away.

Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?

Not platform sepecific.

Is the bug reproductible in a production environment (not a debug one)?

Yes.

Environment

(Write your answer here.)

Expected Behavior

Should migrate to ViewPropTypes exported from ‘deprecated-react-native-prop-types’ for now or potentially find a longer term solution.

Actual Behavior

Warnings that it will break on future RN release.

Reproducible Demo

Any RN project using 68.1+ or Expo 45+ and carousel will display the warning.

Steps to Reproduce

Any RN project using 68.1+ or Expo 45+ and carousel will display the warning.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:33
  • Comments:16

github_iconTop GitHub Comments

22reactions
RyuWoongcommented, May 17, 2022

+1 open files ./node_modules/react-native-snap-carousel/src/carousel/Carousel.js ./node_modules/react-native-snap-carousel/src/Pagination/Pagination.js ./node_modules/react-native-snap-carousel/src/Pagination/PaginationDot.js ./node_modules/react-native-snap-carousel/src/ParallaxImage/ParallaxImage.js

edit

import { ... ,ViewPropTypes } from 'react-native';

to

import { ... } from 'react-native';
import {ViewPropTypes} from 'deprecated-react-native-prop-types'; 
  1. 05.17 Edit

edit 1 file => 4 files It Working! can’t see warning anymore.

RN 68.1+

https://github.com/facebook/react-native/issues/33557

19reactions
KieQuangcommented, May 10, 2022

+1

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 >
ViewPropTypes has been removed from React Native.
Migrate to ViewPropTypes exported from ' deprecated-react-native-prop-types '. viewproptypes will be removed from react native viewproptypes ...
Read more >
viewproptypes has been 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 >
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 >

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