meliorence / meliorence/react-native-snap-carousel

ERROR ViewPropTypes will be removed from React Native, along with all other PropTypes. We recommend that you migrate away from PropTypes and switch to a type system like TypeScript.

Open
#980 19 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

[Expo App] - React native IOS

ERROR ViewPropTypes will be removed from React Native, along with all other PropTypes.
We recommend that you migrate away from PropTypes and switch to a type system like TypeScript.

If you need to continue using ViewPropTypes, migrate to the deprecated-react-native-prop-types package.
This package provides the old PropTypes that have been removed from React Native.

  1. npm install deprecated-react-native-prop-types

  2. Import the ViewPropTypes from deprecated-react-native-prop-types instead of react-native

import { ViewPropTypes } from 'deprecated-react-native-prop-types';

  1. Replace all instances of ViewPropTypes in theses files

Carousel.js, Pagination.js, PaginationDot.js, ParallaxImage.js

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting Carousel.js, Pagination.js, PaginationDot.js, and ParallaxImage.js for their ViewPropTypes imports and usages. Review the issue's installation and import guidance, then replace the affected imports with deprecated-react-native-prop-types. Done means all listed files no longer import ViewPropTypes from react-native.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
Half a day
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.