react-native-tab-navigator icon indicating copy to clipboard operation
react-native-tab-navigator copied to clipboard

Fixing Warnings

Open MarcPerezPro opened this issue 5 years ago • 0 comments

This fixes the warning:

Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 1.

  • node_modules/expo/build/environment/muteWarnings.fx.js:27:24 in error
  • node_modules/prop-types/factoryWithTypeCheckers.js:23:20 in printWarning
  • node_modules/prop-types/factoryWithTypeCheckers.js:373:10 in createUnionTypeChecker
  • node_modules/@opengeekslab/react-native-tab-navigator/src/TabButton/index.js:8:28 in TabButtonContainer
  • node_modules/metro/src/lib/polyfills/require.js:322:6 in loadModuleImplementation

And:

Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.

  • Move code with side effects to componentDidMount, and set initial state in the constructor.
  • Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run npx react-codemod rename-unsafe-lifecycles in your project source folder.

Please update the following components: BarPanel

MarcPerezPro avatar Feb 16 '20 12:02 MarcPerezPro