How to use react-native-ignore-warnings - 6 common examples

To help you get started, we’ve selected a few react-native-ignore-warnings examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github codejamninja / reactant / packages / base / src / init / ios.js View on Github external
export default function ios(initialProps = {}) {
  if (!config.options.debug) {
    ignoreWarnings(config.ignore.warnings || []);
    ignoreWarnings('error', config.ignore.errors || []);
  }
  if (
    config.options.verbose ||
    config.options.debug ||
    config.level === 'trace'
  ) {
    setLevel('trace');
  } else if (config.env === 'development') {
    setLevel('debug');
  } else {
    setLevel(config.level);
  }
  if (config !== 'production') window.reactant = { config };
  registerConfig(config);
  const context = createStore({});
  context.persistor = persistStore(context.store);
github codejamninja / reactant / packages / base / src / init / expo.js View on Github external
export default function expo(initialProps = {}, config = {}) {
  if (!config.options.debug) {
    ignoreWarnings(config.ignore.warnings || []);
    ignoreWarnings('error', config.ignore.errors || []);
  }
  if (config.action === 'start') KeepAwake.activate();
  if (
    config.options.verbose ||
    config.options.debug ||
    config.level === 'trace'
  ) {
    setLevel('trace');
  } else if (config.env === 'development') {
    setLevel('debug');
  } else {
    setLevel(config.level);
  }
  if (config !== 'production') window.reactant = { config };
  registerConfig(config);
  const context = createStore({});
github codejamninja / reactant / packages / base / src / init / expo.js View on Github external
export default function expo(initialProps = {}, config = {}) {
  if (!config.options.debug) {
    ignoreWarnings(config.ignore.warnings || []);
    ignoreWarnings('error', config.ignore.errors || []);
  }
  if (config.action === 'start') KeepAwake.activate();
  if (
    config.options.verbose ||
    config.options.debug ||
    config.level === 'trace'
  ) {
    setLevel('trace');
  } else if (config.env === 'development') {
    setLevel('debug');
  } else {
    setLevel(config.level);
  }
  if (config !== 'production') window.reactant = { config };
  registerConfig(config);
github codejamninja / reactant / packages / base / src / init / android.js View on Github external
export default function android(initialProps = {}) {
  if (!config.options.debug) {
    ignoreWarnings(config.ignore.warnings || []);
    ignoreWarnings('error', config.ignore.errors || []);
  }
  if (
    config.options.verbose ||
    config.options.debug ||
    config.level === 'trace'
  ) {
    setLevel('trace');
  } else if (config.env === 'development') {
    setLevel('debug');
  } else {
    setLevel(config.level);
  }
  if (config !== 'production') window.reactant = { config };
  registerConfig(config);
  const context = createStore({});
github codejamninja / reactant / packages / base / src / init / ios.js View on Github external
export default function ios(initialProps = {}) {
  if (!config.options.debug) {
    ignoreWarnings(config.ignore.warnings || []);
    ignoreWarnings('error', config.ignore.errors || []);
  }
  if (
    config.options.verbose ||
    config.options.debug ||
    config.level === 'trace'
  ) {
    setLevel('trace');
  } else if (config.env === 'development') {
    setLevel('debug');
  } else {
    setLevel(config.level);
  }
  if (config !== 'production') window.reactant = { config };
  registerConfig(config);
  const context = createStore({});
github codejamninja / reactant / packages / base / src / init / android.js View on Github external
export default function android(initialProps = {}) {
  if (!config.options.debug) {
    ignoreWarnings(config.ignore.warnings || []);
    ignoreWarnings('error', config.ignore.errors || []);
  }
  if (
    config.options.verbose ||
    config.options.debug ||
    config.level === 'trace'
  ) {
    setLevel('trace');
  } else if (config.env === 'development') {
    setLevel('debug');
  } else {
    setLevel(config.level);
  }
  if (config !== 'production') window.reactant = { config };
  registerConfig(config);
  const context = createStore({});
  context.persistor = persistStore(context.store);

react-native-ignore-warnings

⚛️🤷⚠️ Ignore react native warnings and logs

Apache-2.0
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis

Popular react-native-ignore-warnings functions