receiveCommand

open override fun receiveCommand(root: ReactDrawerLayout, commandId: String, args: ReadableArray?)

Subclasses may use this method to receive events/commands directly from JS through the . Good example of such a command would be scrollTo request with coordinates for a ReactScrollView instance.

Parameters

root

View instance that should receive the command

commandId

code of the command

args

optional arguments for the command


open override fun receiveCommand(root: ReactDrawerLayout, commandId: Int, args: ReadableArray?)

Deprecated

This method is deprecated. Use receiveCommand(ReactDrawerLayout, String, ReadableArray) instead

Replace with

receiveCommand(ReactDrawerLayout, String, ReadableArray)

Subclasses may use this method to receive events/commands directly from JS through the . Good example of such a command would be scrollTo request with coordinates for a ScrollView instance.

This method is deprecated use receiveCommand instead.

Parameters

root

View instance that should receive the command

commandId

code of the command

args

optional arguments for the command