Skip to content

Instantly share code, notes, and snippets.

@jsaguiar
Created February 22, 2018 10:56
Show Gist options
  • Save jsaguiar/e359dd228492180eb5f0d04237c0d0f1 to your computer and use it in GitHub Desktop.
Save jsaguiar/e359dd228492180eb5f0d04237c0d0f1 to your computer and use it in GitHub Desktop.
Main.js
(....)
render() {
console.log('listings screen render')
const {
offers
} = this.props
return (
<View style={styles.container}>
<MainMap
ref={ref => { this.map = ref }}
>
<Pin>
{this.renderPins(offers[0])}
</Pin>
</MainMap>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#ff0'
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment