2015-01-30 04:10:49 +03:00
|
|
|
/**
|
2017-05-06 06:50:47 +03:00
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
2016-07-12 15:51:57 +03:00
|
|
|
*
|
2018-02-17 05:24:55 +03: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 15:51:57 +03:00
|
|
|
*
|
2017-05-06 06:50:47 +03:00
|
|
|
* @providesModule RNTesterTitle
|
2015-03-24 01:07:33 +03:00
|
|
|
* @flow
|
2015-01-30 04:10:49 +03:00
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
2016-04-08 07:13:12 +03:00
|
|
|
var React = require('react');
|
|
|
|
var ReactNative = require('react-native');
|
2015-01-30 04:10:49 +03:00
|
|
|
var {
|
|
|
|
StyleSheet,
|
|
|
|
Text,
|
|
|
|
View,
|
2016-04-08 07:13:12 +03:00
|
|
|
} = ReactNative;
|
2015-01-30 04:10:49 +03:00
|
|
|
|
2017-08-18 04:36:54 +03:00
|
|
|
class RNTesterTitle extends React.Component<$FlowFixMeProps> {
|
2016-07-26 11:00:02 +03:00
|
|
|
render() {
|
2015-01-30 04:10:49 +03:00
|
|
|
return (
|
|
|
|
<View style={styles.container}>
|
|
|
|
<Text style={styles.text}>
|
|
|
|
{this.props.title}
|
|
|
|
</Text>
|
|
|
|
</View>
|
|
|
|
);
|
|
|
|
}
|
2016-07-26 11:00:02 +03:00
|
|
|
}
|
2015-01-30 04:10:49 +03:00
|
|
|
|
|
|
|
var styles = StyleSheet.create({
|
|
|
|
container: {
|
|
|
|
borderRadius: 4,
|
|
|
|
borderWidth: 0.5,
|
|
|
|
borderColor: '#d6d7da',
|
|
|
|
margin: 10,
|
2015-07-03 12:03:08 +03:00
|
|
|
marginBottom: 0,
|
2015-01-30 04:10:49 +03:00
|
|
|
height: 45,
|
|
|
|
padding: 10,
|
|
|
|
backgroundColor: 'white',
|
|
|
|
},
|
|
|
|
text: {
|
|
|
|
fontSize: 19,
|
2015-03-26 04:19:28 +03:00
|
|
|
fontWeight: '500',
|
2015-01-30 04:10:49 +03:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2017-05-06 06:50:47 +03:00
|
|
|
module.exports = RNTesterTitle;
|