我正在使用反应原生开发并使用jest进行测试。和我的情况我的所有都是测试用例通过,但收到此错误。
console.error node_modules/react-native/Libraries/Core/ExceptionsManager.js:71
Warning: Invalid argument supplied to oneOf, expected an instance of array.
console.error node_modules/react-native/Libraries/Core/ExceptionsManager.js:71
Warning: In next release empty section headers will be rendered. In this release you can use 'enableEmptySections' flag to render empty section headers.
console.error node_modules/react-native/Libraries/Core/ExceptionsManager.js:71
Warning: In next release empty section headers will be rendered. In this release you can use 'enableEmptySections' flag to render empty section headers
in my all test cases
答案 0 :(得分:1)
试试这个 enableEmptySections = {TRUE}