addDecorator Method

Add a new Decorator to display decorations into the active views.

addDecorator(decorator: Decorator): () => void

throws Error if decorator is already active.

see ViewManager.dropDecorator

Parameter Type Description
decorator Decorator The new decorator to add.

Returns - a function that may be called to remove this decorator (in lieu of calling ViewManager.dropDecorator.)

Defined in

Last Updated: 05 June, 2020