📌  相关文章
📜  React-native 抑制警告“VirtualizedLists 永远不应嵌套” - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:11.994000             🧑  作者: Mango

代码示例2
import React, { useEffect } from 'react';
import { LogBox } from 'react-native';

useEffect(() => {
    LogBox.ignoreLogs(['VirtualizedLists should never be nested']);
}, [])