Skip to content

Commit

Permalink
feat: insets android add support for headless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jpudysz committed Jun 22, 2024
1 parent fcc32c5 commit 4d5e9ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/com/unistyles/UnistylesModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ class UnistylesModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
System.loadLibrary("unistyles")

this.platform = Platform(reactApplicationContext)
this.enableEdgeToEdge()

this.reactApplicationContext.javaScriptContextHolder?.let { contextHolder ->
this.reactApplicationContext.catalystInstance.jsCallInvokerHolder?.let { callInvokerHolder: CallInvokerHolder ->
this.nativeInstall(contextHolder.get(), callInvokerHolder)
Expand Down Expand Up @@ -138,6 +136,8 @@ class UnistylesModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
fun removeListeners(count: Double) = Unit

override fun onHostResume() {
this.enableEdgeToEdge()

if (isCxxReady) {
this.onConfigChange()
}
Expand Down

0 comments on commit 4d5e9ee

Please sign in to comment.