Files
react-native/packages/react-native-codegen/e2e/__test_fixtures__/components/FloatPropsNativeComponent.js
T
Michał Osadnik 6e73304401 Follow up e2e testing mechanism with real tests (#25680)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/25680

This diff's adding real e2e tests for skeleton added in previous diff.

It verifies many cases for codegen, which should generate cpp code.

Reviewed By: rickhanlonii

Differential Revision: D16279810

fbshipit-source-id: 4441dd0ed4d95476e4071fbd654ebfb8a47ecbfc
2019-07-17 06:21:48 -07:00

33 lines
895 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?: WithDefault<Float, 0.0>,
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');