mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 17:34:07 +08:00
Add test for -0.0 float
Summary: This was an idea to check by Joshua Gross Changelog: [General][Internal] Codegen: Adding test for negative zero floats Reviewed By: JoshuaGross Differential Revision: D14378418 fbshipit-source-id: 4d18eea18143c501d3f2e7ba334f35ec1dd140e6
This commit is contained in:
committed by
Facebook Github Bot
parent
544d9fb10b
commit
e3b2818581
@@ -213,6 +213,14 @@ const FLOAT_PROPS: SchemaType = {
|
||||
default: 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'blurRadius6',
|
||||
optional: true,
|
||||
typeAnnotation: {
|
||||
type: 'FloatTypeAnnotation',
|
||||
default: -0.0,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -169,7 +169,8 @@ FloatPropNativeComponentProps::FloatPropNativeComponentProps(
|
||||
blurRadius2(convertRawProp(rawProps, \\"blurRadius2\\", sourceProps.blurRadius2, blurRadius2)),
|
||||
blurRadius3(convertRawProp(rawProps, \\"blurRadius3\\", sourceProps.blurRadius3, blurRadius3)),
|
||||
blurRadius4(convertRawProp(rawProps, \\"blurRadius4\\", sourceProps.blurRadius4, blurRadius4)),
|
||||
blurRadius5(convertRawProp(rawProps, \\"blurRadius5\\", sourceProps.blurRadius5, blurRadius5))
|
||||
blurRadius5(convertRawProp(rawProps, \\"blurRadius5\\", sourceProps.blurRadius5, blurRadius5)),
|
||||
blurRadius6(convertRawProp(rawProps, \\"blurRadius6\\", sourceProps.blurRadius6, blurRadius6))
|
||||
{}
|
||||
|
||||
} // namespace react
|
||||
|
||||
@@ -207,6 +207,7 @@ const Float blurRadius2{0.001};
|
||||
const Float blurRadius3{2.1};
|
||||
const Float blurRadius4{0.0};
|
||||
const Float blurRadius5{1.0};
|
||||
const Float blurRadius6{0.0};
|
||||
};
|
||||
|
||||
} // namespace react
|
||||
|
||||
@@ -226,6 +226,7 @@ const FloatPropNativeComponentViewConfig = {
|
||||
blurRadius3: true,
|
||||
blurRadius4: true,
|
||||
blurRadius5: true,
|
||||
blurRadius6: true,
|
||||
style: ReactNativeStyleAttributes
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user