GithubHelp home page GithubHelp logo

Comments (8)

Eightyplus avatar Eightyplus commented on May 18, 2024 3

Is it possible to pass information in to compoent and overlay?
I have the two paths below and only need to add title of the header and the text inside of TextView.

<Route path="/help" component={TextView} overlayComponent={HomeHeader}/>
<Route path="/information" component={TextView} overlayComponent={HomeHeader} />

something like

<Route path="/help" component={TextView} overlayComponent={HomeHeader} title="Help" text="Help Text"/>
<Route path="/information" component={TextView} overlayComponent={HomeHeader} title="Information" text="bla bla..."/>

from react-router-native.

jmurzy avatar jmurzy commented on May 18, 2024 1

See my comment here. In terms of react-router-native, we should probably make this easier by passing the overlay ref in props to route components as soon as facebook/react-native@c57bac4 lands in a stable release.

from react-router-native.

joonhocho avatar joonhocho commented on May 18, 2024 1

Excited for new changes in NavigationExperimental!

from react-router-native.

jmurzy avatar jmurzy commented on May 18, 2024

Same here. I think we are only a couple weeks away from calling it just Navigation. ⌛️

🍺

from react-router-native.

cpsubrian avatar cpsubrian commented on May 18, 2024

@jmurzy Hey, posting the gist I linked to from Discord so others can follow-along/help. This is my attempt (not a runnable example, but has all relevant redux code) at using redux to control the title of a overlayComponent. The issue is that the actions do not fire when routes change from pop/back/etc because the components have already rendered.

https://gist.github.com/cpsubrian/278ad43f79f2301c4aba1cb5401fca99

from react-router-native.

jmurzy avatar jmurzy commented on May 18, 2024

@cpsubrian Thanks for the gist. I'll try to reproduce this on my end, and get back to you in the next few days.

from react-router-native.

cpsubrian avatar cpsubrian commented on May 18, 2024

Yeah no rush, in the meantime just adding the header in the component. Would be nice to get the animations driven by the interpolators back at some point though.

from react-router-native.

cpsubrian avatar cpsubrian commented on May 18, 2024

Thanks for taking a look.

from react-router-native.

Related Issues (20)

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.