Skip to content

Instantly share code, notes, and snippets.

@hgale
Created February 27, 2017 02:07
Show Gist options
  • Save hgale/4fbb9253344cd2ccca4413601dd8d50c to your computer and use it in GitHub Desktop.
Save hgale/4fbb9253344cd2ccca4413601dd8d50c to your computer and use it in GitHub Desktop.
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