...
|
...
|
@@ -7,13 +7,12 @@ import android.support.annotation.Nullable; |
|
|
import android.view.SurfaceHolder;
|
|
|
import android.view.SurfaceView;
|
|
|
import android.view.View;
|
|
|
import android.widget.Toast;
|
|
|
|
|
|
import com.facebook.react.bridge.Arguments;
|
|
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
|
import com.facebook.react.bridge.ReactContext;
|
|
|
import com.facebook.react.bridge.WritableMap;
|
|
|
import com.facebook.react.modules.core.DeviceEventManagerModule;
|
|
|
import com.facebook.react.modules.core.RCTNativeAppEventEmitter;
|
|
|
import com.yh_vendor.R;
|
|
|
|
|
|
public class QRActivity extends Activity
|
...
|
...
|
@@ -60,7 +59,7 @@ public class QRActivity extends Activity |
|
|
String eventName,
|
|
|
@Nullable WritableMap params) {
|
|
|
reactContext
|
|
|
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
|
|
|
.getJSModule(RCTNativeAppEventEmitter.class)
|
|
|
.emit(eventName, params);
|
|
|
}
|
|
|
|
...
|
...
|
|