Skip to content

Commit 0f0d2b1

Browse files
committed
Migrate ReactHostImpl modifications to Kotlin
1 parent f28eee6 commit 0f0d2b1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ import com.facebook.react.uimanager.UIManagerModule
6666
import com.facebook.react.uimanager.events.BlackHoleEventDispatcher
6767
import com.facebook.react.uimanager.events.EventDispatcher
6868
import com.facebook.react.views.imagehelper.ResourceDrawableIdHelper
69+
import com.facebook.react.views.view.applyEdgeToEdge
6970
import java.lang.ref.WeakReference
7071
import java.util.concurrent.CopyOnWriteArrayList
7172
import java.util.concurrent.Executor
@@ -616,6 +617,8 @@ public class ReactHostImpl(
616617

617618
@ThreadConfined(ThreadConfined.UI)
618619
override fun onConfigurationChanged(context: Context) {
620+
UiThreadUtil.runOnUiThread { currentActivity?.window?.applyEdgeToEdge() }
621+
619622
val currentReactContext = this.currentReactContext
620623
if (currentReactContext != null) {
621624
if (ReactNativeFeatureFlags.enableFontScaleChangesUpdatingLayout()) {

packages/rn-tester/js/examples/ScrollView/ScrollViewIndicatorInsetsIOSExample.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export function ScrollViewIndicatorInsetsExample() {
3737
visible={modalVisible}
3838
onRequestClose={() => setModalVisible(false)}
3939
presentationStyle="fullScreen"
40-
statusBarTranslucent={false}
4140
supportedOrientations={['portrait', 'landscape']}>
4241
<View style={styles.modal}>
4342
<ScrollView

0 commit comments

Comments
 (0)