react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Provide a way to style the overflow icon in ToolbarAndroid

Open saidimu opened this issue 11 years ago • 3 comments

Currently the overflow icon in <ToolbarAndroid> (three vertical dots) is always black with no way to style it. A hack around it is to provide a custom View or to omit actions altogether as shown in the examples.

In both cases one would have to implement the floating menu that appears when the overflow icon is clicked.

saidimu avatar Sep 19 '15 03:09 saidimu

cc @foghina

andreicoman11 avatar Sep 22 '15 10:09 andreicoman11

We'd love a PR for this. You just need to add a prop in ToolbarAndroid.android.js and handle it in ReactToolbarManager.java to call setOverflowIcon.

foghina avatar Sep 22 '15 10:09 foghina

One option is to use the native styling feature provided by android. The icon color can be changed by adding the following line to the android/app/src/main/res/values/styles.xml file.

<item name="android:textColorSecondary">@android:color/white</item>

Source: http://stackoverflow.com/a/31139160

ami7ava avatar Oct 04 '15 06:10 ami7ava