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
|
|
|
*
|
2015-11-12 19:39:05 +00:00
|
|
|
* @flow
|
2017-02-25 11:05:32 +00:00
|
|
|
* @providesModule SetPropertiesExampleApp
|
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');
|
2016-02-20 00:55:07 +00:00
|
|
|
const {
|
|
|
|
Text,
|
|
|
|
View,
|
2016-04-09 03:36:40 +00:00
|
|
|
} = ReactNative;
|
2015-11-12 19:39:05 +00:00
|
|
|
|
2017-08-18 01:36:54 +00:00
|
|
|
class SetPropertiesExampleApp extends React.Component<$FlowFixMeProps> {
|
2015-11-12 19:39:05 +00:00
|
|
|
|
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',
|
|
|
|
justifyContent: 'center'
|
|
|
|
};
|
|
|
|
|
|
|
|
return (
|
|
|
|
<View style={wrapperStyle}>
|
|
|
|
<Text>
|
|
|
|
Embedded React Native view
|
|
|
|
</Text>
|
|
|
|
</View>
|
|
|
|
);
|
2016-02-20 00:55:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2015-11-12 19:39:05 +00:00
|
|
|
|
|
|
|
module.exports = SetPropertiesExampleApp;
|