zobeirhamid / react-native-scrollable-navigation-bar

Respecting navigation bar for scrolling screens.
https://zobeirhamid.github.io/react-native-scrollable-navigation-bar/
MIT License
266 stars 29 forks source link

Error with SwitchNavigator StatusBarStack.length undefined #12

Closed hirbod closed 4 years ago

hirbod commented 4 years ago

When I navigate (clicking the "logout button" in my app) using a switch navigator, I get this error

IMG_7817

hirbod commented 4 years ago

PS: This error only happens if there is no

                    StatusBar={() => (
                        <StatusBarComponent
                            barStyle="light-content"
                            backgroundColor="transparent"
                        />
                    )}

After I added this, the error is gone but force me to use the StatusBar (which is ok for me). My PR makes it "free to choose"

zobeirhamid commented 4 years ago

@Hirbod Thanks you for all your contributions, I really appreciate it! I'm gonna take a look at the PR tomorrow.