Skip to content

Send NavigationButtonPressed event also on Swipe-Back on screen#8222

Merged
markdevocht merged 4 commits intomasterfrom
feat/send-navigationButtonPressed-event-on-swipeback
Feb 5, 2026
Merged

Send NavigationButtonPressed event also on Swipe-Back on screen#8222
markdevocht merged 4 commits intomasterfrom
feat/send-navigationButtonPressed-event-on-swipeback

Conversation

@markdevocht
Copy link
Contributor

@markdevocht markdevocht commented Feb 2, 2026

In Android the RNN.NavigationButtonPressed event is send when tapping the back button and when swiping back on the screen, this was not the case in iOS.

We are now sending this event also on Swipe-back gesture and is turned OFF by default.

The sending of the event is controlled by an options flag called: navigationButtonEventOnSwipeBack
and should be send like this:

Navigation.push(this.props.componentId, {
      component: {
        name: SCREEN_NAME,
        options: {
          topBar: {
            backButton: {
              popStackOnPress: false
            }
          },
          hardwareBackButton: {
            popStackOnPress: false,
            dismissModalOnPress: false
          },

navigationButtonEventOnSwipeBack: true

      },
       passProps
}

@markdevocht markdevocht self-assigned this Feb 2, 2026
@markdevocht markdevocht linked an issue Feb 2, 2026 that may be closed by this pull request
@markdevocht markdevocht merged commit ffc40de into master Feb 5, 2026
3 checks passed
@markdevocht markdevocht deleted the feat/send-navigationButtonPressed-event-on-swipeback branch February 5, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS swipe back gesture not triggering onPopScreen (UILib)

1 participant