Answers for "React-native suppress the warning "VirtualizedLists should never be nested""

0

React-native suppress the warning "VirtualizedLists should never be nested"

import React, { useEffect } from 'react';
import { LogBox } from 'react-native';

useEffect(() => {
    LogBox.ignoreLogs(['VirtualizedLists should never be nested']);
}, [])
Posted by: Guest on April-30-2021
0

React-native suppress the warning "VirtualizedLists should never be nested"

FUNCTIONAL

import React, { useEffect } from 'react';
import { LogBox } from 'react-native';

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


CLASS BASED

import React from 'react';
import { LogBox } from 'react-native';

componentDidMount() {
    LogBox.ignoreLogs(['VirtualizedLists should never be nested']);
}
Posted by: Guest on April-30-2021

Code answers related to "React-native suppress the warning "VirtualizedLists should never be nested""

Code answers related to "TypeScript"

Browse Popular Code Answers by Language