File tree Expand file tree Collapse file tree
android/src/main/java/com/frontegg/reactnative Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ class FronteggRNModule(val reactContext: ReactApplicationContext) :
169169
170170 @ReactMethod
171171 fun stepUp (maxAgeSeconds : Double , promise : Promise ) {
172- val activity = currentActivity
172+ val activity = reactApplicationContext. currentActivity
173173 if (activity == null ) {
174174 promise.reject(" NO_ACTIVITY" , " Current activity is null" )
175175 return
@@ -219,7 +219,7 @@ class FronteggRNModule(val reactContext: ReactApplicationContext) :
219219
220220 @ReactMethod
221221 fun openAdminPortal (promise : Promise ) {
222- val activity = currentActivity
222+ val activity = reactApplicationContext. currentActivity
223223 if (activity == null ) {
224224 promise.reject(" NO_ACTIVITY" , " Cannot open Admin Portal without an active Activity" )
225225 return
You can’t perform that action at this time.
0 commit comments