Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support RN 0.60+ Yeeeeeyyyyyy #54

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update ProximityRecord.java
hidayat-nur authored Feb 3, 2022
commit 04d50a70517a1a044456b15f5bda7cd09fca203a
4 changes: 2 additions & 2 deletions android/src/main/java/com/sensormanager/ProximityRecord.java
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.util.Log;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;

import java.io.*;
import java.util.Date;
@@ -47,7 +47,7 @@ public void stop() {
mSensorManager.unregisterListener(this);
}

private void sendEvent(String eventName, @Nullable WritableMap params) {
private void sendEvent(String eventName, @NonNull WritableMap params) {
try {
mReactContext
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)