> ## Documentation Index
> Fetch the complete documentation index at: https://docs.median.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Native gestures and interactions

> Enable swipe navigation, pinch-to-zoom, and pull-to-refresh in your app, and toggle swipe gestures at runtime with the JavaScript Bridge.

Enable native interaction gestures in your app. Median supports swipe-based navigation, pinch-to-zoom, and pull-to-refresh, so your app behaves like a native mobile application.

> [!TIP]
>
> **Test  with our demo page**
>
> We host a ready-made demo page at
>
> that calls the  features through the Median JavaScript Bridge.
> Load it inside your Median app during development, either by setting it
> as your app's website URL in App Studio or by navigating to it from your
> own site, and use it to confirm  works on a real device before
> you add it to your own pages.
>
> The demo page only works inside a Median app with  enabled.
> Opened in a regular mobile or desktop browser, the native features
> won't respond. Remember to switch your app back to your own URL before
> release.

## Implementation guide

### Swipe navigation

Enable swipe gestures to allow users to navigate backward and forward through their browsing history using simple horizontal swipes.

> [!NOTE]
>
> **Android behavior**
>
> On Android devices, visual arrow indicators appear on the screen to provide feedback when a previous or next page is available in the history stack.

#### Managing swipe gestures via JavaScript Bridge

You can toggle swipe gestures at runtime to dynamically enable or disable navigation based on your app’s current state or specific view requirements.

**Enable swipe gestures**

Median JavaScript Bridge

```javascript JavaScript  theme={null}
median.android.swipeGestures.enable(); 
```

**Disable swipe gestures**

Median JavaScript Bridge

```javascript JavaScript  theme={null}
median.android.swipeGestures.disable(); 
```

### Pinch-to-zoom

The pinch-to-zoom feature allows users to use two fingers to interactively zoom in and out of content within your app.

* **Default state**: This feature is disabled by default.
* **Use case**: Enable this if your content (such as product images, maps, or data-dense pages) requires fine-grained zooming control.

### Pull-to-refresh

Pull-to-refresh provides a standard mobile gesture for reloading the current page by swiping down from the top of the screen.

**Cross-platform support**: You can configure this feature independently for iOS and Android.


## Related topics

- [Native functionality](https://docs.median.co/docs/native-functionality.md)
- [Haptics](https://docs.median.co/docs/haptics.md)
- [Adjust](https://docs.median.co/docs/adjust.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.