INNER CODE UNIT · JavaScript

noop

lucasferreira/react-native-flash-message · src/FlashMessage.js:32

const noop = () => {};

/**
 * Simple random ID for internal FlashMessage component usage
 */
function srid() {
  function s4() {
    return Math.floor((1 + Math.random()) * 0x10000)
      .toString(16)
      .substring(1);
  }

  return `${s4()}-${s4()}-${s4()}`;
}

/**
 * Translates icon prop value into complex internal object
 */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…