Files
react-native/Libraries/StyleSheet/processColorArray.js
T
Rick Hanlon ebb8caa4df Add handling for ColorArray
Summary: This diff adds support for ColorArrayValue in the flow parser

Reviewed By: cpojer

Differential Revision: D15502923

fbshipit-source-id: 6a906b6d609168378fabeb49d0080de011a34d78
2019-06-03 07:21:20 -07:00

20 lines
458 B
JavaScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
*/
'use strict';
const processColor = require('./processColor');
function processColorArray(colors: ?Array<string>): ?Array<?number> {
return colors == null ? null : colors.map(processColor);
}
module.exports = processColorArray;