Skip to content

Commit 9e64243

Browse files
authored
Fix for overflow items into menu not showing because of color (#8243)
1 parent ae317a6 commit 9e64243

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

android/src/main/java/com/reactnativenavigation/views/stack/topbar/titlebar/ButtonBar.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import android.view.View
1111
import android.view.ViewGroup
1212
import androidx.appcompat.widget.ActionMenuView
1313
import androidx.appcompat.widget.Toolbar
14+
import com.reactnativenavigation.R
1415
import com.reactnativenavigation.utils.ObjectUtils
1516
import com.reactnativenavigation.utils.ViewUtils
1617
import com.reactnativenavigation.viewcontrollers.stack.topbar.button.ButtonController
@@ -21,6 +22,7 @@ open class ButtonBar internal constructor(context: Context) : Toolbar(context) {
2122
init {
2223
super.setContentInsetsAbsolute(0, 0)
2324
this.contentInsetStartWithNavigation = 0
25+
setPopupTheme(R.style.TopBarOverflowPopup)
2426
}
2527

2628
override fun onViewAdded(child: View) {

android/src/main/res/values/styles.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<item name="elevation">0dp</item>
55
</style>
66

7+
<style name="TopBarOverflowPopup" parent="ThemeOverlay.AppCompat.Light" />
8+
79
<!--The following is a workaround needed to run unit tests in command line-->
810
<style name="Widget.Support.CoordinatorLayout" parent="android:Widget">
911
@null

0 commit comments

Comments
 (0)