Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Change opacity of header as finger moves #1

Open
t4t5 opened this issue Apr 12, 2015 · 3 comments
Open

Change opacity of header as finger moves #1

t4t5 opened this issue Apr 12, 2015 · 3 comments

Comments

@t4t5
Copy link
Owner

t4t5 commented Apr 12, 2015

Right now, the navigation bar only updates after the user releases their touch. If anyone has a nice implementation for changing the navigation bar's opacity based on the user's finger position (as many well-designed apps do), feel free to leave a comment or make a pull request!

@SuperMoon
Copy link

I'm new to RN and react-native-router .
How can I use routes in titleCompoent ?
my code is something like this,it will cause an error :"this.props.toRoute is not a function"
var TitleComp = React.createClass({
render:function(){
return (

aaa

);
},
_toSearchPage: function(){
this.props.toRoute({
name: "To Search Page",
component: SearchPage
}
);
}
});

var MyApp = React.createClass({
render:function() {
return (

)
}
});
var firstRoute = {
name: 'Welcome!',
titleComponent:TitleComp,
component: SearchPage,
};

AppRegistry.registerComponent('navProject', () => MyApp);

@fakefish
Copy link

Still no one can do this issue?

@fakefish
Copy link

I saw https://facebook.github.io/react-native/docs/navigator.html, it can do this, I'd like to see what happened.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants