mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
df0d6e28e5
Summary: Adds handling for default props for java props Reviewed By: JoshuaGross Differential Revision: D16417825 fbshipit-source-id: 00ad2ace33409e9c204de16970ff0b7f756fda71
33 lines
876 B
JavaScript
33 lines
876 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
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
import type {
|
|
WithDefault,
|
|
Float,
|
|
} from '../../../../../Libraries/Types/CodegenTypes';
|
|
import type {ViewProps} from '../../../../../Libraries/Components/View/ViewPropTypes';
|
|
import codegenNativeComponent from '../../../../../Libraries/Utilities/codegenNativeComponent';
|
|
|
|
type NativeProps = $ReadOnly<{|
|
|
...ViewProps,
|
|
|
|
// Props
|
|
blurRadius: Float,
|
|
blurRadius2?: WithDefault<Float, 0.001>,
|
|
blurRadius3?: WithDefault<Float, 2.1>,
|
|
blurRadius4?: WithDefault<Float, 0>,
|
|
blurRadius5?: WithDefault<Float, 1>,
|
|
blurRadius6?: WithDefault<Float, -0.0>,
|
|
|}>;
|
|
|
|
export default codegenNativeComponent<NativeProps>('FloatPropsNativeComponent');
|