|
@@ -67,7 +67,7 @@ class PushedScreen extends Component {
|
67
|
67
|
|
68
|
68
|
render() {
|
69
|
69
|
return (
|
70
|
|
- <View style={{flex: 1, padding: 20, backgroundColor: this.bgColor}}>
|
|
70
|
+ <ScrollView style={{flex: 1, padding: 20, backgroundColor: this.bgColor}}>
|
71
|
71
|
|
72
|
72
|
<Text style={styles.text}>
|
73
|
73
|
<Text style={{fontWeight: '500'}}>Counter: </Text> {this.props.counter.count}
|
|
@@ -117,10 +117,10 @@ class PushedScreen extends Component {
|
117
|
117
|
|
118
|
118
|
<Text style={{fontWeight: '500'}}>String prop: {this.props.str}</Text>
|
119
|
119
|
<Text style={{fontWeight: '500'}}>Number prop: {this.props.num}</Text>
|
120
|
|
- <Text style={{fontWeight: '500'}}>Object prop: {this.props.obj.str}</Text>
|
121
|
|
- <Text style={{fontWeight: '500'}}>Array prop: {this.props.obj.arr[0].str}</Text>
|
|
120
|
+ {this.props.obj ? <Text style={{fontWeight: '500'}}>Object prop: {this.props.obj.str}</Text> : false}
|
|
121
|
+ {this.props.obj && this.props.obj.arr ? <Text style={{fontWeight: '500'}}>Array prop: {this.props.obj.arr[0].str}</Text> : false}
|
122
|
122
|
|
123
|
|
- </View>
|
|
123
|
+ </ScrollView>
|
124
|
124
|
);
|
125
|
125
|
}
|
126
|
126
|
|