Fix header config when navigating back gets cancelled. (#171)

This change fixes the problem when header would update to the previous screen configuration as a result of starting swipe back gesture but never restore to the original one in case swipe back gets cancelled (e.g. user didn't swipe far enough). The problem was that as a result of swipe back we'd apply header config changes but after cancel there was no trigger to reset header to the previous state.
This commit is contained in:
Krzysztof Magiera
2019-10-03 11:56:29 +02:00
committed by GitHub
parent a229904b57
commit 7620c541da
4 changed files with 49 additions and 33 deletions

View File

@@ -19,7 +19,7 @@
@property (nonatomic) BOOL translucent;
@property (nonatomic) BOOL gestureEnabled;
- (void)willShowViewController:(UIViewController *)vc;
+ (void)willShowViewController:(UIViewController *)vc withConfig:(RNSScreenStackHeaderConfig*)config;
@end