Closed rohozhnikoff closed 6 years ago
KeyboardManager.setEnableDebugging(false); doesn't affect logging disabling actually we get console.info every time, when we call any method of KeyboardManager it's produce a lot of messy messages every reload
KeyboardManager.setEnableDebugging(false);
console.info
i remove them by this patch:
const keyboardManagerPrefix = 'KeyboardManager.'; const originalLogToConsole = require('react-native/Libraries/Utilities/RCTLog.js').logToConsole; require('react-native/Libraries/Utilities/RCTLog.js').logToConsole = (logLevel, ...rest) => { if ( logLevel === 'info' && typeof rest[0] === 'string' && rest[0].slice(0, keyboardManagerPrefix.length) === keyboardManagerPrefix ) { return; } originalLogToConsole(logLevel, ...rest); };
but it's better to save some state on native side, and dont produce any messages, if debug==false
Released 4.0.13-9
4.0.13-9
KeyboardManager.setEnableDebugging(false);
doesn't affect logging disabling actually we getconsole.info
every time, when we call any method of KeyboardManager it's produce a lot of messy messages every reloadi remove them by this patch:
but it's better to save some state on native side, and dont produce any messages, if debug==false