leecade / leecade/react-native-swiper

Warning on using View Pager in the module

Open
#1,069 4 comments 0 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

Which OS ?

Android

Version

Pie ( API level 28 )
Which versions are you using:

  • react-native-swiper v?
    1.5.14
  • react-native v0.?.?
    0.59.8
Expected behaviour

There should not be any warning in the screen

Actual behaviour

When using the package, the following warning is thrown.

Warning: ViewPagerAndroid has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/viewpager' instead of 'react-native'. See https://github.com/react-native-community/react-native-viewpager

How to reproduce it>
Steps to reproduce
  1. Run react-native init project --version react-native@0.59.9
  2. npm install react-native-swiper --save
  3. Run react-native run-android

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the warning using the listed Android, React Native 0.59.9, and react-native-swiper 1.5.14 setup, then locate the package reference that triggers the ViewPagerAndroid extraction warning. Done means the package no longer produces this warning in the reproduction case.

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
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.