2015-01-30 04:10:49 +03:00
|
|
|
/**
|
2018-09-12 01:27:47 +03:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
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
|
|
|
*
|
2018-05-11 23:32:37 +03:00
|
|
|
* @format
|
2018-08-09 18:32:04 +03:00
|
|
|
* @flow strict-local
|
2015-01-30 04:10:49 +03:00
|
|
|
*/
|
2018-05-11 23:32:37 +03:00
|
|
|
|
2015-01-30 04:10:49 +03:00
|
|
|
'use strict';
|
|
|
|
|
2018-10-31 00:29:54 +03:00
|
|
|
const React = require('react');
|
|
|
|
const ReactNative = require('react-native');
|
|
|
|
const {StyleSheet, Text, View} = 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}>
|
2018-05-11 23:32:37 +03:00
|
|
|
<Text style={styles.text}>{this.props.title}</Text>
|
2015-01-30 04:10:49 +03:00
|
|
|
</View>
|
|
|
|
);
|
|
|
|
}
|
2016-07-26 11:00:02 +03:00
|
|
|
}
|
2015-01-30 04:10:49 +03:00
|
|
|
|
2018-10-31 00:29:54 +03:00
|
|
|
const styles = StyleSheet.create({
|
2015-01-30 04:10:49 +03:00
|
|
|
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;
|