mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-09 09:13:32 +08:00
Fix programmatic back when gesture is in progress
This commit is contained in:
@@ -63,10 +63,17 @@ class DetailsScreen extends React.Component {
|
||||
}}
|
||||
>
|
||||
<Text>Details Screen</Text>
|
||||
<Button title="Go back in 2s" onPress={this._goBackInTwoSeconds} />
|
||||
<Buttons />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
_goBackInTwoSeconds = () => {
|
||||
setTimeout(() => {
|
||||
this.props.navigation.goBack();
|
||||
}, 2000);
|
||||
};
|
||||
}
|
||||
|
||||
class HeaderlessScreen extends React.Component {
|
||||
|
||||
Reference in New Issue
Block a user