Coder Social home page Coder Social logo

Comments (7)

cem2ran avatar cem2ran commented on June 13, 2024 1

The above issue has been resolved and a pull request has been submitted. #177

from ex-navigation.

sibelius avatar sibelius commented on June 13, 2024 1

@brentvatne this is fixed here: #185

from ex-navigation.

damusnet avatar damusnet commented on June 13, 2024

Hi @brentvatne, I need to implement a NavigationBar with a Gradient as a background. Luckily, I already found this amazing other library that does gradients perfectly 😉 but I'm not sure how to include it in ex-navigation.

  • Should I hide the ex-NavigationBar and craft my own?
  • Or try and override the ex-NavigationBar?
  • Or does this issue hold the magical key to my problem, in which case, has there been any progress on it, and how can I help?

Thanks a lot in advance for any hint you can provide.

from ex-navigation.

cem2ran avatar cem2ran commented on June 13, 2024

@damusnet solving this issue should allow you to add a gradient as background. e.g.:
https://github.com/cem2ran/ex-navigation/blob/8f5ab1cef5d99326eec201e8a05c8f60f1e08943/example/components/CustomBarExample.js#L27-L34

@brentvatne tricky issue. I've considered allowing the user to pass the actual container through renderBackground, possibly wrapping it in Animated.createAnimatedComponent, but I'm not sure of the possible consequences this might have.

The above possibly simpler solution seems to work but requires you to explicitly state the width. Haven't been able to figure out the correct set of styles to make it fill the whole width per default.

from ex-navigation.

satya164 avatar satya164 commented on June 13, 2024

Why does it need to specify the width? Shouldn't flex: 1 be enough?

from ex-navigation.

cem2ran avatar cem2ran commented on June 13, 2024

not sure. You can try to run the CustomBarExample but the background view will not be visible without a width.

from ex-navigation.

damusnet avatar damusnet commented on June 13, 2024

Hi @cem2ran and thanks for taking a look at this.
I'll try and run your example tomorrow, but I agree with Satyajit, react-native-linear-gradient should not need a fixed width. I'm using a custom made NavBar for now with it, and it's width is not set.

from ex-navigation.

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.