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