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