react-native-keyboard-aware-scroll-view icon indicating copy to clipboard operation
react-native-keyboard-aware-scroll-view copied to clipboard

RN 0.57.3 ListView Deprecation Warning

Open adcuz opened this issue 8 years ago • 7 comments

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']);

adcuz avatar Oct 19 '18 08:10 adcuz

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

ethanneff avatar Oct 23 '18 22:10 ethanneff

Happens in RN 0.57.7 as well

ethanneff avatar Oct 23 '18 22:10 ethanneff

We can remove ListView from future releases.

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

alvaromb avatar Oct 24 '18 06:10 alvaromb

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

ethanneff avatar Oct 24 '18 16:10 ethanneff

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

apexskier avatar Oct 24 '18 20:10 apexskier

@apexskier

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

n1ru4l avatar Oct 31 '18 12:10 n1ru4l

thank you @n1ru4l

Leleking avatar Jun 08 '19 00:06 Leleking