React-native-keyboard-aware-scroll-view: RN 0.57.3 ListView Deprecation Warning

Created on 19 Oct 2018  ·  7Comments  ·  Source: APSL/react-native-keyboard-aware-scroll-view

React Native 0.57.3 onwards is throwing a warning about ListView being removed in a future release. I am using KeyboardAwareScrollView only. Is there a way to avoid triggering this warning aside from YellowBox.ignoreWarnings? I am not using/importing KeyboardAwareListView.

ListView is deprecated and will be removed in a future release. See https://fb.me/nolistview for more information

screenshot 2018-10-19 at 09 46 00

In the meantime I've just added this at the root of the app to hide the warning:
YellowBox.ignoreWarnings(['ListView is deprecated']);

Most helpful comment

We can remove ListView from future releases.

@ethanneff those are warnings, your tests should be passing.

All 7 comments

It's killing my Jest as well

 PASS  src/components/Icon/__tests__/index.tsx (5.062s)
  ● Console

    console.warn node_modules/react-native/Libraries/react-native/react-native-implementation.js:64
      ListView is deprecated and will be removed in a future release. See https://fb.me/nolistview for more information

 PASS  src/components/Button/__tests__/index.tsx (13.702s)
  ● Console

    console.warn node_modules/react-native/Libraries/react-native/react-native-implementation.js:64
      ListView is deprecated and will be removed in a future release. See https://fb.me/nolistview for more information

 PASS  src/components/Markdown/__tests__/index.tsx (35.521s)
  ● Console

    console.warn node_modules/react-native/Libraries/react-native/react-native-implementation.js:64
      ListView is deprecated and will be removed in a future release. See https://fb.me/nolistview for more information

 PASS  src/components/Screen/__tests__/index.tsx (13.159s)
  ● Console

    console.warn node_modules/react-native/Libraries/react-native/react-native-implementation.js:64
      ListView is deprecated and will be removed in a future release. See https://fb.me/nolistview for more information

 PASS  src/screens/NotFound/__tests__/index.tsx
  ● Console

    console.warn node_modules/react-native/Libraries/react-native/react-native-implementation.js:64
      ListView is deprecated and will be removed in a future release. See https://fb.me/nolistview for more information

 PASS  src/components/Link/__tests__/index.tsx
  ● Console

    console.warn node_modules/react-native/Libraries/react-native/react-native-implementation.js:64
      ListView is deprecated and will be removed in a future release. See https://fb.me/nolistview for more information

 PASS  src/components/CardSection/__tests__/index.tsx
  ● Console

    console.warn node_modules/react-native/Libraries/react-native/react-native-implementation.js:64
      ListView is deprecated and will be removed in a future release. See https://fb.me/nolistview for more information

 PASS  src/screens/Main/__tests__/index.tsx
  ● Console

    console.warn node_modules/react-native/Libraries/react-native/react-native-implementation.js:64
      ListView is deprecated and will be removed in a future release. See https://fb.me/nolistview for more information

 PASS  src/screens/Login/__tests__/index.tsx (34.527s)
  ● Console

    console.warn node_modules/react-native/Libraries/react-native/react-native-implementation.js:64
      ListView is deprecated and will be removed in a future release. See https://fb.me/nolistview for more information

 PASS  src/components/Link/__tests__/index.web.tsx (36.636s)
  ● Console

    console.warn node_modules/react-native/Libraries/react-native/react-native-implementation.js:64
      ListView is deprecated and will be removed in a future release. See https://fb.me/nolistview for more information

 PASS  src/__tests__/index.tsx (36.258s)
  ● Console

    console.warn node_modules/react-native/Libraries/react-native/react-native-implementation.js:64
      ListView is deprecated and will be removed in a future release. See https://fb.me/nolistview for more information

Happens in RN 0.57.7 as well

We can remove ListView from future releases.

@ethanneff those are warnings, your tests should be passing.

They are passing, it's just noisy. ¯\_(ツ)_/¯

Anyone have a workaround to squelch warnings in tests? We fail CI if tests emit warnings.

@apexskier

YellowBox.ignoreWarnings(['ListView is deprecated']);

thank you @n1ru4l

Was this page helpful?
0 / 5 - 0 ratings