@@ -9,11 +9,11 @@ import {
99} from 'react-native'
1010import PropTypes from 'prop-types'
1111
12+ import productData from './product.json'
13+
1214import PhotoButton from './PhotoButton'
1315import ProductStyles from './ProductStyle'
1416
15- import productData from './product.json'
16-
1717const styles = StyleSheet . create ( { ...ProductStyles } )
1818
1919class Product extends Component {
@@ -49,9 +49,7 @@ class Product extends Component {
4949
5050 renderNavigator = ( ) => {
5151 return (
52- < View
53- style = { { flexDirection : 'row' } }
54- >
52+ < View style = { { flexDirection : 'row' } } >
5553 < TouchableOpacity style = { [ styles . navigatorButton , { flex : 2 } ] } >
5654 < Text style = { styles . navigatorText } > DIRECTIONS</ Text >
5755 </ TouchableOpacity >
@@ -66,12 +64,11 @@ class Product extends Component {
6664 }
6765
6866 renderContactHeader = ( ) => {
69- const { img } = this . props
7067 return (
7168 < View style = { styles . headerContainer } >
7269 < View style = { styles . coverContainer } >
7370 < ImageBackground
74- source = { { uri : img } }
71+ source = { { uri : this . props . img } }
7572 style = { styles . coverImage }
7673 >
7774 < PhotoButton />
@@ -83,7 +80,7 @@ class Product extends Component {
8380
8481 render ( ) {
8582 return (
86- < View style = { styles . mainviewStyle } >
83+ < View style = { styles . mainViewStyle } >
8784 < ScrollView style = { styles . scroll } >
8885 < View style = { [ styles . container , this . props . containerStyle ] } >
8986 < View style = { styles . cardContainer } >
0 commit comments