-
Notifications
You must be signed in to change notification settings - Fork 2.1k
PR for beta.8 #2015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR for beta.8 #2015
Conversation
…enes declared above - Enhancement: If component has static navigationOptions return it instead of RNRF generated options - Enhancement: Allow all navBar properties (title, right, left, rightButtonImage, onRight, etc.) be defined as static functions/values of Scene component - Fix: Actions.refresh was broken because navigationStore doesn’t allow the same scene after state change - Enhancement: fix ESLint errors for tests
@aksonov - how is this fixing the actions.refresh? I downloaded the 4.0.8 branch and launched the example, but I still can't change the title on the login page. The same happens in a separate project as well. |
@compojoom Please check now (forgot to 'build' js) |
@aksonov - it seems to partially work. It's changing the title, but nothing more? I was used to the folowing pattern in v3: componentDidMount() {
console.log('wtffff refressshshhh');
let title = 'Analyse1',
rightTitle = 'Speichern';
if (this.props.editMode) {
title = 'Analyse Bearbeiten';
rightTitle = 'Fertig';
}
Actions.refresh({
title: title,
rightTitle: rightTitle,
onRight: () => this.onRight(),
backTitle: 'Abbrechen',
});
} this seems to work now, but the only thing changing is the title. No right button appears in my navbar. |
Hm, okay. Defining onRight and rightTitle on my scene seems to work together with refresh. If I define them on the scene, refresh will override them, but if I don't define them, then nothing happens. I don't see any right button. |
@compojoom Please check with latest commit. |
|
I put the Echo view at the bottom of the router component to test clones and RNRF choked on the |
All the other changes/fixes seemed to work for me! |
@aksonov - if the scene doesn't have onright and rightTitle, then the refresh action isn't working. (tested with latest version) |
@compojoom Please give me link to forked Example to demonstrate. |
@southerneer Thanks! |
@compojoom Never mind, was able to reproduce with your snippet above |
@compojoom Check now |
About burger image, use Issues search. Like #703 |
woooohoooo! Let's open the champagne bottle for PR8 👍 Everything seems to work |
@compojoom Thanks for testing! |
Actions.refresh