Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NavigationBar keeps overriding my status bar color #40

Open
andela-cofor opened this issue Apr 7, 2018 · 3 comments
Open

NavigationBar keeps overriding my status bar color #40

andela-cofor opened this issue Apr 7, 2018 · 3 comments

Comments

@andela-cofor
Copy link

andela-cofor commented Apr 7, 2018

<View style={container}>
        <StatusBarComponent backgroundColor='#fff' barStyle="dark-content" />

        <View
          style={{
            width: width / 1.2,
            marginBottom: width / 5,
          }}
        >
          <NavigationBar
            style={{
              zIndex: 1,
              padding: 20
            }}

            leftComponent={
              <Title
                onPress={() => this.openSearchModalForMyLocation()}
              >
                FROM
              </Title>
            }

            centerComponent={
              <Title
                onPress={() => this.openSearchModalForMyDestination()}
              >
                TO
              </Title>
            }

            rightComponent={
              <DropDownMenu
                options={this.state.filters}
                selectedOption={this.state.selectedSlot ? this.state.selectedSlot : this.state.filters[0]}
                onOptionSelected={(filter) => this.setState({ selectedSlot: filter }, () => this.calculatePrice())}
                titleProperty="name"
                valueProperty="value"
                visibleOptions={5}
                vertical
              />
            }
          />
        </View>
</View>
@thecodecafe
Copy link

This is a serious issue, has no one any idea what's causing this?

@ckOfor
Copy link

ckOfor commented Jun 4, 2019

I have actually forgotten about the issue @thecodecafe

@thecodecafe
Copy link

Just figured a workaround, I had to recreate the NavigationBar component, within my projects source code, it's a terrible idea but it's a temporary fix. Wonder whose idea it was to force a colour and style on the status bar. Sheesh! Will do a PR for this to make it optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants