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