Skip to content

Commit

Permalink
fix(android): fix type mismatch DeveloperSettings? vs `DeveloperSet…
Browse files Browse the repository at this point in the history
…tings` (#1967)
  • Loading branch information
tido64 committed Apr 15, 2024
1 parent f488d8f commit a18a69a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,11 @@ class TestAppReactNativeHost(
val latch = CountDownLatch(1)
var packagerIsRunning = false

val devSettings = reactInstanceManager.devSupportManager.devSettings
createDevServerHelper(context, devSettings).isPackagerRunning {
packagerIsRunning = it
latch.countDown()
reactInstanceManager.devSupportManager.devSettings?.let { devSettings ->
createDevServerHelper(context, devSettings).isPackagerRunning {
packagerIsRunning = it
latch.countDown()
}
}

latch.await()
Expand Down

0 comments on commit a18a69a

Please sign in to comment.