/* @flow */ import * as React from 'react'; import { View, StyleSheet } from 'react-native'; import { Caption, Headline, Paragraph, Subheading, Title, withTheme, } from 'react-native-paper'; import type { Theme } from 'react-native-paper/types'; type Props = { theme: Theme, }; class TextExample extends React.Component { static title = 'Typography'; render() { const { theme: { colors: { background } } } = this.props; return ( Caption Paragraph Subheading Title Headline ); } } const styles = StyleSheet.create({ container: { padding: 16, flex: 1, }, text: { marginVertical: 4, }, }); export default withTheme(TextExample);