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.

Buttons "active" styling doesn't work

See original GitHub issue

I tried the Footer with only icons example from the docs, which should show the navigation icon as the only active button. But for me, all buttons are shown active - What’s the issue?

react-native, react and native-base version

  • react-native-cli: 2.0.1
  • react-native: 0.50.4
  • react: 16.0.0
  • native-base: ^2.3.8

Expected behaviour

Only the navigation button should be active. Like this: 2018-02-14_13_47_58

Actual behaviour

All buttons in the tabbar are shown active, as seen in the screenshot.

Steps to reproduce (code snippet or screenshot)

      <Footer>
        <FooterTab>
          <Button>
            <Icon name="apps" />
          </Button>
          <Button>
            <Icon name="camera" />
          </Button>
          <Button active>
            <Icon active name="navigate" />
          </Button>
          <Button>
            <Icon name="person" />
          </Button>
        </FooterTab>
      </Footer>

Screenshot of emulator/device

Screenshot

Is the bug present in both ios and android or in any one of them?

My device is a Huawei P8 running Android 6.1.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SupriyaKalghatgicommented, Mar 9, 2018

Fixed with NB 2.3.10

0reactions
Alareescommented, Mar 29, 2020

hi, i have the same problem i using NB:2.13.8, RN:0.61.5 using emulator android 5.1 PS : i’m not using footer

            <View >
              <Button active >
                <Icon active name='md-call' >
              </Button>
            </View>
            <View >
              <Button >
                <Icon name='md-call' >
              </Button>
            </View>
            <View >
              <Button >
                <Icon name='md-call' >
              </Button>
            </View>

@SupriyaKalghatgi

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap button active and target styling not working
:active is working fine. Just after releasing your mouse button it works as :hover. :active is just for mouse press not for click....
Read more >
active - CSS: Cascading Style Sheets - MDN Web Docs
The :active CSS pseudo-class represents an element (such as a button) that is being activated by the user. When using a mouse, "activation" ......
Read more >
How to solving : CSS selector “:active” not working
I'm very confused, because :hover selector was working normaly, but active not working. The code: ::CSS:: #working #selec:hover{background-color ...
Read more >
Styling The Good Ol' Button Element - Ahmad Shadeed
Adding on that, I will explain how to style the most common button styles, and shed light on some pitfalls we face while...
Read more >
Styling buttons, the right way - Florens Verschelde
Learn how to create an accessible button style which can be used with the correct ... Step 3, Styling hover, focus and active...
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