Skip to content

Commit 2f31339

Browse files
committed
Set default DevMenuConfiguration on RNTesterActivity
1 parent ba4068e commit 2f31339

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/rn-tester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterActivity.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ internal class RNTesterActivity : ReactActivity() {
6666
fullyDrawnReporter.addReporter()
6767
maybeUpdateBackgroundColor()
6868

69+
reactDelegate?.reactHost?.let { reactHost ->
70+
val devMenuConfiguration = DevMenuConfiguration(
71+
isDevMenuEnabled = true,
72+
isShakeGestureEnabled = true,
73+
areKeyboardShortcutsEnabled = true,
74+
)
75+
reactHost.setDevMenuConfiguration(devMenuConfiguration)
76+
}
77+
6978
// register insets listener to update margins on the ReactRootView to avoid overlap w/ system
7079
// bars
7180
reactDelegate?.reactRootView?.let { rootView ->

0 commit comments

Comments
 (0)