Skip to content

UI Visibility

The ComPDFKit React Native SDK provides several ways to control the visibility of user interface (UI) elements. The following table summarizes the supported options:

OptionDescription
automaticThe toolbar and other UI elements automatically show or hide when the user taps the page.
alwaysThe user interface is always visible.
neverThe user interface remains hidden at all times.

You can use the uiVisibilityMode configuration option to change the UI visibility mode. The example below shows how to use the automatic mode:

tsx
ComPDFKit.getDefaultConfig({
  modeConfig: {
    uiVisibilityMode: 'automatic'
  }
});

Behavior of automatic mode:

AndroidiOS
guides_rn_3.8.10_2guides_rn_3.8.7_1

Behavior of always mode:

AndroidiOS
guides_rn_3.8.7_5guides_rn_3.8.7_3

Behavior of never mode:

AndroidiOS
guides_rn_3.8.7_6guides_rn_3.8.7_4