DEV Community

Nguyễn Hữu Hiếu
Nguyễn Hữu Hiếu

Posted on

react-native issues: DevSettings can't change global variables.

  • iOS - Dev mode - OK
  • iOS - Production Mode - Crash app
let isLog: boolean = false;
DevSettings.addMenuItem('Toggle Log - logger.middleware.tsx', () => {
  isLog = !isLog;
});
Enter fullscreen mode Exit fullscreen mode

Top comments (0)