Created
September 26, 2017 17:50
-
-
Save diego3g/52be795e022a115cf1ea56a5402e7412 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
/* Core */ | |
import React, { Component } from 'react'; | |
/* Presentational */ | |
import { View, Text } from 'react-native'; | |
export default class Recipe extends Component { | |
static navigationOptions = { | |
title: 'Detalhe da receita' | |
}; | |
render() { | |
const { params } = this.props.navigation.state; | |
return ( | |
<View> | |
<Text>Você acessou a receita: {params.recipe}</Text> | |
</View> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment