Created
February 27, 2017 02:07
-
-
Save hgale/4fbb9253344cd2ccca4413601dd8d50c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { Image, View } from 'react-native' | |
import bgImage from './assets/bg_transparent.png' | |
import style from './Style' | |
export const BaseView = (props) => { | |
return ( | |
<View | |
{...props} | |
style={[style.baseView, props.style]} /> | |
) | |
} | |
export const BgView = (props) => { | |
const propStyle = { | |
backgroundColor: 'transparent' | |
} | |
return ( | |
<Image | |
source={bgImage} | |
style={style.pageBackground}> | |
<BaseView | |
style={propStyle} | |
{...props} /> | |
</Image> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment