Showing
1 changed file
with
2 additions
and
3 deletions
@@ -7,13 +7,12 @@ import android.support.annotation.Nullable; | @@ -7,13 +7,12 @@ import android.support.annotation.Nullable; | ||
7 | import android.view.SurfaceHolder; | 7 | import android.view.SurfaceHolder; |
8 | import android.view.SurfaceView; | 8 | import android.view.SurfaceView; |
9 | import android.view.View; | 9 | import android.view.View; |
10 | -import android.widget.Toast; | ||
11 | 10 | ||
12 | import com.facebook.react.bridge.Arguments; | 11 | import com.facebook.react.bridge.Arguments; |
13 | import com.facebook.react.bridge.ReactApplicationContext; | 12 | import com.facebook.react.bridge.ReactApplicationContext; |
14 | import com.facebook.react.bridge.ReactContext; | 13 | import com.facebook.react.bridge.ReactContext; |
15 | import com.facebook.react.bridge.WritableMap; | 14 | import com.facebook.react.bridge.WritableMap; |
16 | -import com.facebook.react.modules.core.DeviceEventManagerModule; | 15 | +import com.facebook.react.modules.core.RCTNativeAppEventEmitter; |
17 | import com.yh_vendor.R; | 16 | import com.yh_vendor.R; |
18 | 17 | ||
19 | public class QRActivity extends Activity | 18 | public class QRActivity extends Activity |
@@ -60,7 +59,7 @@ public class QRActivity extends Activity | @@ -60,7 +59,7 @@ public class QRActivity extends Activity | ||
60 | String eventName, | 59 | String eventName, |
61 | @Nullable WritableMap params) { | 60 | @Nullable WritableMap params) { |
62 | reactContext | 61 | reactContext |
63 | - .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class) | 62 | + .getJSModule(RCTNativeAppEventEmitter.class) |
64 | .emit(eventName, params); | 63 | .emit(eventName, params); |
65 | } | 64 | } |
66 | 65 |
-
Please register or login to post a comment