Code Monkey home page Code Monkey logo

Comments (8)

Salakar avatar Salakar commented on July 20, 2024

Should be doable, we'll have a look and get back to you :)

from react-native-material-design.

Ehesp avatar Ehesp commented on July 20, 2024

I'm sure it will be, but need to think about how the toolbar will cope with this. Currently it's sat at the top of everything as a "master", something like this would need to override it, or provide a way to override it for a current scene... Shall think.

from react-native-material-design.

Ehesp avatar Ehesp commented on July 20, 2024

I added this as an issue here, facebook/react-native#5177, however I'm thinking it's not possibly to do like this.

One potential solution is that with the custom Navigate class in the demo, you could do something like so:

Navigate.to('route', {
    name: 'Some route',
    navigationBar: <SomeOtherComponent />
});

Then in our Toolbar component, do something like:

render() {
   const { navigator } = this.context;

   if (navigator.navigationBar) {
       return  navigator.navigationBar;
   }

   return <Toolbar....../>
}

This however, means the whole demo-app itself is very tightly attached to:

  • The Navigate class
  • The demo app implementing the Toolbar in this way.

Yet at the same time, all we need to do for the core lib is provide the toolbar... how you implement it in your own setup is your issue I suppose.

from react-native-material-design.

bozzmob avatar bozzmob commented on July 20, 2024

Hi @arpu @Salakar @Ehesp It is possible. And there is already a react native implementation react-native-parallax-scroll-view. It's really a great implementation. I have tried it and used it. :)
It is an actively maintained repo.

from react-native-material-design.

Ehesp avatar Ehesp commented on July 20, 2024

Looks good but doesn't seem very "Material", especially how it doesn't fade. Shall look into it a bit more.

from react-native-material-design.

bozzmob avatar bozzmob commented on July 20, 2024

Yeah agree with you. It's not "Material", but, a very good reference to start with.

from react-native-material-design.

arpu avatar arpu commented on July 20, 2024

@Ehesp you workin on this?

from react-native-material-design.

arpu avatar arpu commented on July 20, 2024

can be closed? works perfect with react-native-parallax-scroll-view.

from react-native-material-design.

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.