“YellowBox reage nativo” Respostas de código

Remova o aviso amarelo reagir emulador nativo

console.disableYellowBox = true;
//add it anywhere in any page to disable warnings in emulator
Jurie

Desativar a caixa amarela reage nativa

console.disableYellowBox = true;
Clear Cobra

YellowBox reage nativo

// RN >= 0.63
import { LogBox } from 'react-native';

LogBox.ignoreLogs(['Warning: ...']);

// RN >= 0.52
import {YellowBox} from 'react-native';

YellowBox.ignoreWarnings(['Warning: ReactNative.createElement']);

// RN < 0.52
console.ignoredYellowBox = ['Warning: ReactNative.createElement'];
le table

Respostas semelhantes a “YellowBox reage nativo”

Perguntas semelhantes a “YellowBox reage nativo”

Mais respostas relacionadas para “YellowBox reage nativo” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código