/* @flow */ import * as React from 'react'; import { ScrollView, StyleSheet } from 'react-native'; import { Text, Surface, withTheme } from 'react-native-paper'; import type { Theme } from 'react-native-paper/types'; type Props = { theme: Theme, }; class SurfaceExample extends React.Component { static title = 'Surface'; render() { const { theme: { colors: { background }, }, } = this.props; return ( {[1, 2, 4, 6, 12].map(i => ( {i} ))} ); } } const styles = StyleSheet.create({ container: { flex: 1, }, content: { padding: 24, alignItems: 'center', }, surface: { margin: 24, height: 80, width: 80, alignItems: 'center', justifyContent: 'center', }, }); export default withTheme(SurfaceExample);