Files
react-native/packages/rn-tester/js/examples/SetPropertiesExample/SetPropertiesExampleApp.js
Sam Zhou 6b354155ed Replace $FlowFixMe(Props|State|Empty) with just $FlowFixMe (#53002)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/53002

Changelog: [Internal]

Reviewed By: marcoww6

Differential Revision: D79524515

fbshipit-source-id: 18b96538a62c7ae5912b1e89d2b50c1420c7eaf5
2025-08-04 11:43:00 -07:00

36 lines
850 B
JavaScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
'use strict';
const React = require('react');
const {Text, View} = require('react-native');
class SetPropertiesExampleApp extends React.Component<$FlowFixMe> {
render(): React.Node {
const wrapperStyle = {
backgroundColor: this.props.color,
flex: 1,
alignItems: 'center',
justifyContent: 'center',
};
return (
/* $FlowFixMe[incompatible-type] Natural Inference rollout. See
* https://fburl.com/workplace/6291gfvu */
<View style={wrapperStyle}>
<Text>Embedded React Native view</Text>
</View>
);
}
}
module.exports = SetPropertiesExampleApp;