receiveCommand

open fun receiveCommand(scrollView: ReactHorizontalScrollView, commandId: Int, @Nullable 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 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


open fun receiveCommand(scrollView: ReactHorizontalScrollView, commandId: String, @Nullable 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