GithubHelp home page GithubHelp logo

earhart's People

Contributors

ajsmth avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

earhart's Issues

Non-animated tab stack

So I think a common use case will be to have tabs that don't animate, I started creating a whatsapp clone to test this out a few weeks ago and noticed this. Also I think explaining how deep routing into nested navigators are intended to work would be quite handy as it's the only real complex concept.

For example, I may have a couple screens that can exist in tab a and tab b, if I want to deep link either on startup or clicking a push notification etc it seems that rather than explicitly setting tab this is clever and knows how to navigate sub Navigators?

Cannot pop to root unless initial route pathname is "/"

Loving this so far, found a slight gotcha with this:

Popping to the root is not possible unless the initial path is "/"

    const history = useHistory();
    history.go(-history.entries.length)

Digging through the code, I think this is due to how the memoryHistory is behaves by default. It looks like given the following router treats the initial path is always set to "/"

With the following Navigator the memoryHistory is created incorrectly

 <Navigator initialIndex={0}>
                    <Stack>
                        <Route gestureEnabled path="/1">
                            <Header titleColor="#ffffff" largeTitle titale="Test"
                              backgroundColor="transparent"/>
                            <Home />
                        </Route>
                        <Route gestureEnabled path="/2">
                            <Header titleColor="#ffffff" largeTitle title="Test2"
                              backgroundColor="transparent"/>
                            <Home />
                        </Route>
                        <Route gestureEnabled path="/3">
                            <Header titleColor="#ffffff" largeTitle title="Test3"
                              backgroundColor="transparent"/>
                            <Home />
                        </Route>
                    </Stack>
</Navigator>

image

However given the following markup the router behaves fine

 <Navigator initialIndex={0}>
                    <Stack>
                        <Route gestureEnabled path="/">
                            <Header titleColor="#ffffff" largeTitle titale="Test"
                              backgroundColor="transparent"/>
                            <Home />
                        </Route>
                        <Route gestureEnabled path="/2">
                            <Header titleColor="#ffffff" largeTitle title="Test2"
                              backgroundColor="transparent"/>
                            <Home />
                        </Route>
                        <Route gestureEnabled path="/3">
                            <Header titleColor="#ffffff" largeTitle title="Test3"
                              backgroundColor="transparent"/>
                            <Home />
                        </Route>
                    </Stack>
</Navigator>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.