question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Picker arrow is white - how can I change the color?

See original GitHub issue

My picker caret/arrow is white, and because my background is also white it looks like it’s missing. How can I make it the default black? This is the issue on both iOS and Android

                  <ListItem last icon onPress={() => { }}>
                    <Body>
                      <Text>{I18n.t('$setting_owner_alarm_unattend_time')}</Text>
                    </Body>
                    <Right>
                      <Picker
                        supportedOrientations={['portrait', 'landscape']}
                        iosHeader={I18n.t('$setting_owner_picker_header')}
                        headerBackButtonText={I18n.t('$setting_owner_picker_back')}
                        mode='dropdown'
                        selectedValue={this.state.alert_interval}
                        onValueChange={(val) => { this.setState({alert_interval: parseInt(val)}) }}>
                        {
                          this.state.intervals.map(val => (
                            <Item key={val} label={I18n.t('$setting_owner_alarm_min', {n: val / 60})} value={val} />
                          ))
                        }
                      </Picker>
                    </Right>
                  </ListItem>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

29reactions
jnichollscommented, Dec 4, 2018

You can change the color in your styles.xml by adding this to your theme:

<item name="android:colorControlNormal">#FFFFFF</item>

There is no way to control it via react-native and thus native-base (since NB just passes straight down to RN).

18reactions
jm90mcommented, Mar 27, 2019

@amitpadmani If you aren’t using expo then you can do what @jnicholls said above.

I use expo and I couldn’t find another way so all I did was remove it… you can remove it by setting a backgroundColor to the Picker component like so -


     <Picker
            style={{
              marginLeft: -8,
              marginTop: 2,
              backgroundColor: 'transparent',
            }}
            ...
          >
Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the default React Native <Picker> drop-down arrow icon
You can change drop-down arrow icon in android like following : <Picker dropdownIconColor= 'colorName'/>.
Read more >
Change the color of Android's picker dropdown arrow | Voters
Change the color of Android's picker dropdown arrow. Ahmed Magdy El Hanafy. Add the option to change the color of the dropdown arrow...
Read more >
Add or change the background color of cells - Microsoft Support
To remove any background colors, patterns, or fill effects from cells, just select the cells. Then click Home > arrow next to Fill...
Read more >
Styling - Lunacy Documentation - Icons8
Click the color box in the color control and use the color picker to define the required color. OR. Type or paste the...
Read more >
Adjust color, saturation, and hue - Adobe Support
To edit the range by choosing colors from the image, select the color picker, and click the image. Use the color picker +...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found