Answers for "how to disable warning in react native"

6

remove yellow warning react native emulator

console.disableYellowBox = true;
//add it anywhere in any page to disable warnings in emulator
Posted by: Guest on February-18-2020
1

react native disable warnings

// for RN >= 0.63
// in your entry file (eg. App.tsx)

import { LogBox } from 'react-native';
// ignore warnings that start in a string that matchs any of
// the ones in the array
LogBox.ignoreLogs(["Require cycle:"])
Posted by: Guest on September-06-2021
0

hide warnings in expo app

console.disableYellowBox = true;
// add this is main component of react native application
Posted by: Guest on July-26-2020

Code answers related to "how to disable warning in react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language