@@ -41,6 +41,7 @@ - (instancetype)initWithDict:(NSDictionary *)dict {
4141 self.window = [[WindowOptions alloc ] initWithDict: dict[@" window" ]];
4242
4343 self.popGesture = [[Bool alloc ] initWithValue: dict[@" popGesture" ]];
44+ self.navigationButtonEventOnSwipeBack = [[Bool alloc ] initWithValue: dict[@" navigationButtonEventOnSwipeBack" ]];
4445 self.backgroundImage = [ImageParser parse: dict key: @" backgroundImage" ];
4546 self.rootBackgroundImage = [ImageParser parse: dict key: @" rootBackgroundImage" ];
4647 self.modalPresentationStyle = [[Text alloc ] initWithValue: dict[@" modalPresentationStyle" ]];
@@ -73,6 +74,8 @@ - (RNNNavigationOptions *)mergeOptions:(RNNNavigationOptions *)options {
7374
7475 if (options.popGesture .hasValue )
7576 result.popGesture = options.popGesture ;
77+ if (options.navigationButtonEventOnSwipeBack .hasValue )
78+ result.navigationButtonEventOnSwipeBack = options.navigationButtonEventOnSwipeBack ;
7679 if (options.backgroundImage .hasValue )
7780 result.backgroundImage = options.backgroundImage ;
7881 if (options.rootBackgroundImage .hasValue )
@@ -104,6 +107,7 @@ - (RNNNavigationOptions *)copy {
104107 [newOptions.window mergeOptions: self .window];
105108
106109 newOptions.popGesture = self.popGesture ;
110+ newOptions.navigationButtonEventOnSwipeBack = self.navigationButtonEventOnSwipeBack ;
107111 newOptions.backgroundImage = self.backgroundImage ;
108112 newOptions.rootBackgroundImage = self.rootBackgroundImage ;
109113 newOptions.modalPresentationStyle = self.modalPresentationStyle ;
0 commit comments