Update padding and bg color for tutorial
This commit is contained in:
parent
6ec091562e
commit
049e3534b5
|
@ -89,8 +89,7 @@ var styles = StyleSheet.create({
|
|||
flex: 1,
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
backgroundColor: 'white',
|
||||
paddingTop: 20,
|
||||
backgroundColor: '#F5FCFF',
|
||||
},
|
||||
thumbnail: {
|
||||
width: 53,
|
||||
|
@ -154,8 +153,7 @@ Not too much has changed, we added a container around the Texts and then moved t
|
|||
flexDirection: 'row',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
backgroundColor: 'white',
|
||||
paddingTop: 20,
|
||||
backgroundColor: '#F5FCFF',
|
||||
},
|
||||
```
|
||||
|
||||
|
@ -314,6 +312,7 @@ Now modify the render funtion so that once we have our data it renders a ListVie
|
|||
<ListView
|
||||
dataSource={this.state.dataSource}
|
||||
renderRow={this.renderMovie}
|
||||
style={styles.listView}
|
||||
/>
|
||||
);
|
||||
},
|
||||
|
@ -350,6 +349,14 @@ And here is the modified `fetchData` method that updates the state accordingly:
|
|||
},
|
||||
```
|
||||
|
||||
Finally, we add styles for the `ListView` component to the `styles` JS object:
|
||||
```javascript
|
||||
listView: {
|
||||
paddingTop: 20,
|
||||
backgroundColor: '#F5FCFF',
|
||||
},
|
||||
```
|
||||
|
||||
And here's the final result:
|
||||
|
||||
<div class="tutorial-mock">
|
||||
|
@ -455,8 +462,7 @@ var styles = StyleSheet.create({
|
|||
flexDirection: 'row',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
backgroundColor: 'white',
|
||||
paddingTop: 20,
|
||||
backgroundColor: '#F5FCFF',
|
||||
},
|
||||
rightContainer: {
|
||||
flex: 1,
|
||||
|
@ -473,6 +479,10 @@ var styles = StyleSheet.create({
|
|||
width: 53,
|
||||
height: 81,
|
||||
},
|
||||
listView: {
|
||||
paddingTop: 20,
|
||||
backgroundColor: '#F5FCFF',
|
||||
},
|
||||
});
|
||||
|
||||
AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);
|
||||
|
|
Loading…
Reference in New Issue