2015-11-12 11:39:05 -08:00
|
|
|
/**
|
2017-05-05 20:50:47 -07:00
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
2016-07-12 05:51:57 -07:00
|
|
|
*
|
2018-02-16 18:24:55 -08: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 05:51:57 -07:00
|
|
|
*
|
2018-05-11 13:32:37 -07:00
|
|
|
* @format
|
2015-11-12 11:39:05 -08:00
|
|
|
* @flow
|
|
|
|
*/
|
2018-05-11 13:32:37 -07:00
|
|
|
|
2015-11-12 11:39:05 -08:00
|
|
|
'use strict';
|
|
|
|
|
2016-04-08 20:36:40 -07:00
|
|
|
const React = require('react');
|
|
|
|
const ReactNative = require('react-native');
|
2018-05-11 13:32:37 -07:00
|
|
|
const {Text, View} = ReactNative;
|
2015-11-12 11:39:05 -08:00
|
|
|
|
2017-08-17 18:36:54 -07:00
|
|
|
class SetPropertiesExampleApp extends React.Component<$FlowFixMeProps> {
|
2016-02-19 16:55:07 -08:00
|
|
|
render() {
|
|
|
|
const wrapperStyle = {
|
2015-11-12 11:39:05 -08:00
|
|
|
backgroundColor: this.props.color,
|
|
|
|
flex: 1,
|
|
|
|
alignItems: 'center',
|
2018-05-11 13:32:37 -07:00
|
|
|
justifyContent: 'center',
|
2015-11-12 11:39:05 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
return (
|
|
|
|
<View style={wrapperStyle}>
|
2018-05-11 13:32:37 -07:00
|
|
|
<Text>Embedded React Native view</Text>
|
2015-11-12 11:39:05 -08:00
|
|
|
</View>
|
|
|
|
);
|
2016-02-19 16:55:07 -08:00
|
|
|
}
|
|
|
|
}
|
2015-11-12 11:39:05 -08:00
|
|
|
|
|
|
|
module.exports = SetPropertiesExampleApp;
|