2015-11-12 19:39:05 +00:00
|
|
|
/**
|
2017-05-06 03:50:47 +00:00
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
2016-07-12 12:51:57 +00:00
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2016-07-12 12:51:57 +00:00
|
|
|
*
|
2018-05-11 20:32:37 +00:00
|
|
|
* @format
|
2018-08-09 15:32:04 +00:00
|
|
|
* @flow strict-local
|
2015-11-12 19:39:05 +00:00
|
|
|
*/
|
2018-05-11 20:32:37 +00:00
|
|
|
|
2015-11-12 19:39:05 +00:00
|
|
|
'use strict';
|
|
|
|
|
2016-04-09 03:36:40 +00:00
|
|
|
const React = require('react');
|
|
|
|
const ReactNative = require('react-native');
|
2018-05-11 20:32:37 +00:00
|
|
|
const {Text, View} = ReactNative;
|
2015-11-12 19:39:05 +00:00
|
|
|
|
2017-08-18 01:36:54 +00:00
|
|
|
class SetPropertiesExampleApp extends React.Component<$FlowFixMeProps> {
|
2016-02-20 00:55:07 +00:00
|
|
|
render() {
|
|
|
|
const wrapperStyle = {
|
2015-11-12 19:39:05 +00:00
|
|
|
backgroundColor: this.props.color,
|
|
|
|
flex: 1,
|
|
|
|
alignItems: 'center',
|
2018-05-11 20:32:37 +00:00
|
|
|
justifyContent: 'center',
|
2015-11-12 19:39:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
return (
|
|
|
|
<View style={wrapperStyle}>
|
2018-05-11 20:32:37 +00:00
|
|
|
<Text>Embedded React Native view</Text>
|
2015-11-12 19:39:05 +00:00
|
|
|
</View>
|
|
|
|
);
|
2016-02-20 00:55:07 +00:00
|
|
|
}
|
|
|
|
}
|
2015-11-12 19:39:05 +00:00
|
|
|
|
|
|
|
module.exports = SetPropertiesExampleApp;
|