---
title: "Show React Native PSPDFKitView close button | Nutrient"
canonical_url: "https://www.nutrient.io/guides/react-native/user-interface/close-button/"
md_url: "https://www.nutrient.io/guides/react-native/user-interface/close-button.md"
last_updated: "2026-06-19T09:21:00.309Z"
description: "The NutrientView can display a close (or back) button in the top-left corner of the main toolbar. This lets you dismiss the currently displayed NutrientView."
---

# Show the PSPDFKitView close button

The [`NutrientView`](https://www.nutrient.io/api/react-native/NutrientView.html) can display a close (or back) button in the top-left corner of the main toolbar. This allows you to dismiss the currently displayed [`NutrientView`](https://www.nutrient.io/api/react-native/NutrientView.html).

By default, the close button is hidden. To show the close button, you need to set the `showNavigationButtonInToolbar` prop in Android and the `showCloseButton` prop in iOS to `true`, like so:

```js

<NutrientView
	document={DOCUMENT}
	showNavigationButtonInToolbar={true} // Show the navigation back button on Android.
	showCloseButton={true} // Show the close button (X) on iOS.
	ref={this.pdfRef}
	fragmentTag="PDF1"
/>

```

| Android                                                                                                                       | iOS                                                                                                                  |
| ----------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|  |  |
---

## Related pages

- [Customizing our PDF viewer in React Native](/guides/react-native/user-interface.md)
- [Localization: Change languages in our React Native PDF viewer](/guides/react-native/user-interface/localization.md)
- [Configuring PSPDFKitView properties](/guides/react-native/user-interface/configuration.md)
- [Customizing menus on React Native](/guides/react-native/user-interface/menus.md)
- [NutrientView React Native UI component](/guides/react-native/user-interface/pspdfkitview.md)
- [Show or hide the UI in our React Native viewer](/guides/react-native/user-interface/ui-visibility.md)

