dispatchCommand

abstract fun dispatchCommand(reactTag: Int, commandId: Int, commandArgs: ReadableArray?)

Dispatches the commandId received by parameter to the view associated with the reactTag. The command will be processed in the UIThread.

Receiving commands as ints is deprecated and will be removed in a future release.

Pre-Fabric, this is only called on the Native Module Thread.

Parameters

reactTag

that identifies the view that will receive this command

commandId

command id

commandArgs

ReadableArray parameters associated with the command


abstract fun dispatchCommand(reactTag: Int, commandId: String, commandArgs: ReadableArray?)

Dispatches the commandId received by parameter to the view associated with the reactTag. The command will be processed in the UIThread.

Pre-Fabric, this is only called on the Native Module Thread.

Parameters

reactTag

that identifies the view that will receive this command

commandId

command id

commandArgs

ReadableArray parameters associated with the command