|
@@ -26,7 +26,7 @@ class PushedScreen extends Component {
|
26
|
26
|
<Button title="Push" onPress={this.onClickPush} />
|
27
|
27
|
<Button title="Pop" onPress={this.onClickPop} />
|
28
|
28
|
<Button title="Pop Previous" onPress={this.onClickPopPrevious} />
|
29
|
|
- {stackPosition === 3 && <Button title="Pop To Stack Position 1" onPress={this.onClickPopToFirstPosition} />}
|
|
29
|
+ {stackPosition > 2 && <Button title="Pop To Stack Position 1" onPress={this.onClickPopToFirstPosition} />}
|
30
|
30
|
<Text style={styles.footer}>{`this.props.id = ${this.props.id}`}</Text>
|
31
|
31
|
</View>
|
32
|
32
|
);
|