Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExceptionsManager.js:82 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' #5730

Closed
Steffi3rd opened this issue Mar 22, 2019 · 19 comments

Comments

@Steffi3rd
Copy link

Capture d’écran 2019-03-22 à 22 35 05

@eriveltonelias
Copy link
Member

Hey @Steffi3rd, thanks for your report

we're tracking this issue in here #5729 and #5684 (comment)

@Kevin9505
Copy link

I have the same problem. How can I solve it?

@robizzt
Copy link

robizzt commented May 15, 2019

Same problem happens when I navigate to screen that has "createMaterialTopTabNavigator".

package.json:

{
  "name": "TestApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.8.3",
    "react-native": "0.59.8",
    "react-native-gesture-handler": "^1.2.1",
    "react-navigation": "^3.9.1"
  },
  "devDependencies": {
    "@babel/core": "^7.4.4",
    "@babel/runtime": "^7.4.4",
    "babel-jest": "^24.8.0",
    "jest": "^24.8.0",
    "metro-react-native-babel-preset": "^0.54.0",
    "react-test-renderer": "16.8.3"
  },
  "jest": {
    "preset": "react-native"
  }
}

react-navigation-bug

@HarshitMadhav
Copy link

Any update on this issue? I am stuck with this error.

@Tencryn
Copy link

Tencryn commented Jun 12, 2019

Any estimation on when this is to be fixed?

@naxtor
Copy link

naxtor commented Jun 15, 2019

react-navigation uses "react-navigation-tabs": "~1.1.4" bumping it to the latest version could resolve the issue

Not working for me

@YajanaRao
Copy link

Any update on the issue?

@rossmacfarlane
Copy link

Any updates on this issue? I'm seeing the yellowbox warning about ViewPagerAndroid. Is it related to react-navigation or the dependency on react-navigation-tabs?

Don't want to supress the warning so hoping for a solution

Using "react-navigation": "3.11.0"

@beeremy
Copy link

beeremy commented Jul 10, 2019

same here, dependency created by React-navigation

@Winandvdb
Copy link

The latest version of react navigation (v3.11.1) still has react-navigation-tabs v1.1.4 as dependency. When will this be fixed?

@gbalduzzi
Copy link

gbalduzzi commented Jul 25, 2019

Updated to react-native-gesture-handler version 1.0.16 and I don't have ViewPagerAndroid, Slider and Webview warnings anymore.

react-navigation on version 3.11.1

@Winandvdb
Copy link

Strange, my react-native-gesture-handler is on 1.2.1. Downgrading the version doesn't seem ideal.

@rossmacfarlane
Copy link

I think even downgrading to 1.0.16 the warning is still there but only in the console? Just not showing as a yellowbox warning. At least for me anyway

@taschik
Copy link

taschik commented Jul 30, 2019

I am on "react-native-gesture-handler": "^1.3.0", and "react-navigation": "^3.11.1", and still see this warning. Any plans to update?

@soban1234
Copy link

Not fixed yet

"dependencies": {
"@mapbox/polyline": "^1.1.0",
"@react-native-community/async-storage": "^1.5.1",
"formik": "^1.5.8",
"git": "^0.1.5",
"react": "16.8.6",
"react-native": "0.60.3",
"react-native-background-fetch": "^2.6.1",
"react-native-background-geolocation": "^3.0.9",
"react-native-calendars": "^1.200.0",
"react-native-countdown-component": "^2.5.1",
"react-native-gesture-handler": "^1.3.0",
"react-native-maps": "0.25.0",
"react-native-signature-capture": "git+https://github.com/RepairShopr/react-native-signature-capture.git",
"react-native-slide-to-unlock": "^0.1.4",
"react-native-vector-icons": "^6.6.0",
"react-navigation": "^3.11.1",
"yup": "^0.27.0"
},

@cjmoran-vw
Copy link

cjmoran-vw commented Aug 5, 2019

FYI: you can hide the yellow box for this warning in the meantime by doing this at the root level of your app:

import { YellowBox } from "react-native"

YellowBox.ignoreWarnings([
  "Warning: ViewPagerAndroid has been extracted",
])

You'll still see it in console but it's better than nothing.

@rsmzjk
Copy link

rsmzjk commented Oct 20, 2019

ViewPagerAndroid在react-native里被移除,那依赖此的组件无法调用该如何解决.

@olkunmustafa
Copy link

import { YellowBox } from "react-native"

YellowBox.ignoreWarnings([
  "Warning: ViewPagerAndroid has been extracted",
])

Interesting why everyone downvotes this comment.

@jsamr
Copy link

jsamr commented Nov 29, 2020

@olkunmustafa I guess it goes along the lines "ain't no problem if you can't see it", and a very close cousin of "if we don't test, there's no virus!". You're basically applying censorship to the very willing and helpful Yellow Box, that's very mean and risky!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests