This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/react-native/user-interface/close-button.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Show React Native PSPDFKitView close button | Nutrient

The NutrientView 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.

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:

<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"
/>
AndroidiOS