Rocket.Chat.ReactNative/app/containers/Passcode/Subtitle.js

26 lines
411 B
JavaScript
Raw Normal View History

2020-04-23 16:08:50 +00:00
import React from 'react';
import { Text } from 'react-native';
2020-04-23 19:37:00 +00:00
import PropTypes from 'prop-types';
2020-04-23 16:08:50 +00:00
import styles from './styles';
import { themes } from '../../constants/colors';
const Subtitle = ({ theme }) => (
<Text
style={[
styles.textSubtitle,
{
2020-04-23 19:37:00 +00:00
color: themes[theme].bodyText
2020-04-23 16:08:50 +00:00
}
]}
>
Subtitle
</Text>
);
2020-04-23 19:37:00 +00:00
Subtitle.propTypes = {
theme: PropTypes.string
};
2020-04-23 16:08:50 +00:00
export default Subtitle;