Skip to content

Commit

Permalink
Added call to finishTask to reproduce the crash
Browse files Browse the repository at this point in the history
  • Loading branch information
RodolfoGS committed Sep 14, 2024
1 parent 5d527b7 commit 6fe3c13
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.facebook.react.defaults.DefaultReactNativeHost
import com.facebook.soloader.SoLoader
import com.facebook.react.jstasks.HeadlessJsTaskContext

class MainApplication : Application(), ReactApplication {

Expand Down Expand Up @@ -39,5 +40,8 @@ class MainApplication : Application(), ReactApplication {
// If you opted-in for the New Architecture, we load the native entry point for this app.
load()
}
HeadlessJsTaskContext
.getInstance(reactNativeHost.reactInstanceManager.currentReactContext)
.finishTask(123)
}
}

0 comments on commit 6fe3c13

Please sign in to comment.