Comments (7)
The above issue has been resolved and a pull request has been submitted. #177
from ex-navigation.
@brentvatne this is fixed here: #185
from ex-navigation.
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.
@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.
Why does it need to specify the width? Shouldn't flex: 1
be enough?
from ex-navigation.
not sure. You can try to run the CustomBarExample but the background view will not be visible without a width.
from ex-navigation.
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)
- turn caching off for some pages HOT 1
- error code 404 , it crashes upon scanning of QR.
- Compatibility with RN 0.47 HOT 2
- how to do change toolbar color with drawer
- Large gap on nav bar header on Android HOT 5
- Android back button navigation pop does not trigger onWillChangeTab
- importing NavigationProvider throws undefined is not an object (evaluating PropTypes.shape in NavigationPropTypes.js:30:26) HOT 10
- Styling the default back button on the left side of the navbar HOT 1
- @expo/ex-navigation > [email protected] has incorrect peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0".
- Version 4.0
- tiveart HOT 1
- TypeError: undefined is not an object (evaluating 'navigationState.navigators')
- expo does not support NavigatorIOS ?
- Use react-navigation instead of expo/ex-navigation
- How To Hide TabBar on Particular Screen Using Expo/ex-navigation
- Unmount TabItem in TabNavigation
- Support for the experimental syntax 'exportNamespaceFrom' isn't currently enabled HOT 3
- Issue with babel 7 HOT 1
- [question] Pop to root [solved]
- UnhandledPromiseRejectionWarning: UnableToResolveError: Unable to resolve module @exponent/ex-navigation from
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ex-navigation.