Ran Greenberg преди 7 години
родител
ревизия
be1200895c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      playground/src/containers/PushedScreen.js

+ 1
- 1
playground/src/containers/PushedScreen.js Целия файл

@@ -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
     );