We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a475754 commit cfc914dCopy full SHA for cfc914d
android/src/main/java/com/geektime/rnonesignalandroid/RNOneSignal.java
@@ -105,7 +105,7 @@ private JSONObject jsonFromErrorMessageString(String errorMessage) throws JSONEx
105
106
@ReactMethod
107
public void init(String appId) {
108
- Activity activity = getCurrentActivity();
+ Activity activity = mReactApplicationContext.getCurrentActivity();
109
110
if (activity == null) {
111
// in some cases, especially with react-native-navigation, it can take a while for the Activity to be created
0 commit comments