/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/rn-tester/js/examples/SetPropertiesExample/SetPropertiesExampleApp.js
35 строк
850 B
Sam Zhou
Replace `$FlowFixMe(Props|State|Empty)` with just `$FlowFixMe` (#53002)
04 авг 2025, 21:43
04 авг 2025, 21:43
6b35415
Код
Авторство
О чём код?
/** * 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;