INNER CODE UNIT · JavaScript

processColors

react-native-dialogs/react-native-dialogs · DialogAndroid.js:216

function processColors(nativeConfig: {}) {
  for (const prop of Object.keys(nativeConfig)) {
    if (prop.endsWith('Color')) {
      nativeConfig[prop] = processColor(nativeConfig[prop]);
    }
  }
}

function pick(source, ...keys) {
  const target = {};
  for (const key of keys) {
    if (source.hasOwnProperty(key)) {
      target[key] = source[key];
    }
  }
  return target;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…