Skip to content

Commit

Permalink
Adding surface component.
Browse files Browse the repository at this point in the history
  • Loading branch information
diogoviannaaraujo committed Mar 11, 2020
1 parent 441e1f1 commit 2d85eaa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/Surface.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react'
import {View} from 'react-native'
import {useTheme} from '../lib/theme'

export default function Surface({children, style, ...props}) {
const {colors} = useTheme()
const baseStyle = {
backgroundColor: colors.background,
}
return <View style={[baseStyle, style]} {...props}>{children}</View>
}

0 comments on commit 2d85eaa

Please sign in to comment.