Skip to content
This repository was archived by the owner on Nov 10, 2020. It is now read-only.

Android Settings

Matei Radu edited this page Mar 3, 2019 · 3 revisions

Behavior

  • All properties are optional.
  • If a property is set incorrectly the configuration process will not fail and its default value will be used instead.
  • Chrome Custom Tabs is not Chrome specific and other browsers, like Firefox and Samsung Internet, support it. However, implementation across different browsers may vary and so could the results of applying these settings.

SettingsAndroid object

{
  toolbarColor: "#AA0000",
  showTitle: true,
  addDefaultShareMenu: true,
  closeButtonIcon: myIcon // const myIcon = require('./image.jpg');
}

Reference

toolbarColor [string]

Default: undefined

The color to tint the background of the toolbar. Provided color can be in any TinyColor supported format.

showTitle [boolean]

Default: false

Flag to toggle if the page title should be shown in the custom tab.

addDefaultShareMenu [boolean]

Default: false

Flag to toggle the default share menu.

closeButtonIcon [number]

Default: undefined

Custom close button icon. The Icon image file should be imported with something like require('./image.jpg').

Provided icon must be a .png, .jpg, or .gif file.

Clone this wiki locally