Search in sources :

Example 1 with NativeCommandListener

use of com.reactnativenavigation.react.NativeCommandListener in project react-native-navigation by wix.

the class NativeCommandListenerTest method beforeEach.

@Override
public void beforeEach() {
    promise = Mockito.mock(Promise.class);
    eventEmitter = Mockito.mock(EventEmitter.class);
    uut = new NativeCommandListener(COMMAND_NAME, COMMAND_ID, promise, eventEmitter, mockNow());
}
Also used : Promise(com.facebook.react.bridge.Promise) EventEmitter(com.reactnativenavigation.react.events.EventEmitter) NativeCommandListener(com.reactnativenavigation.react.NativeCommandListener)

Aggregations

Promise (com.facebook.react.bridge.Promise)1 NativeCommandListener (com.reactnativenavigation.react.NativeCommandListener)1 EventEmitter (com.reactnativenavigation.react.events.EventEmitter)1