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'

Đang mở
#671 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
TypeScript
Star
3.4k
Fork
476
Merge trung bình
10 ngày 21 giờ
Pull request đã merge (30 ngày)
2

Mô tả

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)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách kiểm tra PagerViewNativeComponent.ts và tái hiện invariant đã được báo cáo khi chạy ứng dụng với dependency đã được cài đặt. Theo dõi tham chiếu ViewProp và so sánh nó với lỗi ViewPropTypes đã được báo cáo. Công việc được xem là hoàn tất khi dependency không còn kích hoạt invariant này trong quá trình khởi động ứng dụng, kèm theo một kiểm tra hồi quy phù hợp nếu repository cung cấp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
react-native, typescript
Lĩnh vực
mobile
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.