callstack / callstack/react-native-pager-view

Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'

Open
#671 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
TypeScript
Stars
3.4k
Forks
476
Avg merge
10d 21h
Merged PRs (30d)
2

Description

How to Solve [Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types']

when i added this dependancy and run my app then it gave me this error. and i try to find out where 'ViewPropTypes' is used in this dependancy but i found that they use only 'ViewProp' in PagerViewNativeComponent.ts file
![Untitled](https://user-images.githubusercontent.com/84341015/207291423-28a00552-c08f-4018-8afc-559ff1f76768.png)

Contributor guide

Open the contributing guide

Research direction

Start by inspecting PagerViewNativeComponent.ts and reproduce the reported invariant when running the app with the dependency installed. Trace the ViewProp reference and compare it with the reported ViewPropTypes error. Done means the dependency no longer triggers this invariant during app startup, with an appropriate regression check if the repository provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.