mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
JS: Format with Prettier v2.4.1 [3/n]
Summary: Changelog: [General][Internal] Reviewed By: zertosh Differential Revision: D31883447 fbshipit-source-id: cbbf85e4bf935096d242336f41bf0cc5d6f92359
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4e587a1b7d
commit
77ecc7ede1
@@ -11,7 +11,7 @@
|
||||
|
||||
const normalizeColor = require('../StyleSheet/normalizeColor');
|
||||
|
||||
const colorPropType = function(
|
||||
const colorPropType = function (
|
||||
isRequired,
|
||||
props,
|
||||
propName,
|
||||
|
||||
@@ -15,10 +15,10 @@ const flattenStyle = require('../StyleSheet/flattenStyle');
|
||||
|
||||
function DeprecatedStyleSheetPropType(shape: {
|
||||
[key: string]: ReactPropsCheckType,
|
||||
...,
|
||||
...
|
||||
}): ReactPropsCheckType {
|
||||
const shapePropType = deprecatedCreateStrictShapeTypeChecker(shape);
|
||||
return function(props, propName, componentName, location?, ...rest) {
|
||||
return function (props, propName, componentName, location?, ...rest) {
|
||||
let newProps = props;
|
||||
if (props[propName]) {
|
||||
// Just make a dummy prop object with only the flattened style
|
||||
|
||||
@@ -14,7 +14,7 @@ const ReactPropTypes = require('prop-types');
|
||||
|
||||
const deprecatedPropType = require('../Utilities/deprecatedPropType');
|
||||
|
||||
const TransformMatrixPropType = function(
|
||||
const TransformMatrixPropType = function (
|
||||
props: Object,
|
||||
propName: string,
|
||||
componentName: string,
|
||||
@@ -27,7 +27,7 @@ const TransformMatrixPropType = function(
|
||||
}
|
||||
};
|
||||
|
||||
const DecomposedMatrixPropType = function(
|
||||
const DecomposedMatrixPropType = function (
|
||||
props: Object,
|
||||
propName: string,
|
||||
componentName: string,
|
||||
|
||||
@@ -14,7 +14,7 @@ const invariant = require('invariant');
|
||||
|
||||
function deprecatedCreateStrictShapeTypeChecker(shapeTypes: {
|
||||
[key: string]: ReactPropsCheckType,
|
||||
...,
|
||||
...
|
||||
}): ReactPropsChainableTypeChecker {
|
||||
function checkType(
|
||||
isRequired,
|
||||
|
||||
Reference in New Issue
Block a user