Closed adrianczuczka closed 6 years ago
@adrianczuczka please solve the conflicting files first and after I'll quickly look at the PR, ok?
Sorry, I forgot to mention that there will be conflicts if one of the pull requests is accepted. I'm not at work right now but I'll solve the conflicts first thing tomorrow morning, is that ok?
I've had major problems running the app today, so I wasn't able to fix the conflicts yet. The problem is that apparently the native code and JavaScript code is out of sync, so I'm trying to update react-native right now.
This is what the error looks like, and it seems quite hard to fix. This happened before I changed anything, so the exact same code worked a week ago.
Update: the app now works again after updating react-native to the latest version, even though I did exactly that 5 minutes ago already and nothing changed. I feel like I'm going crazy.
@jollopre the branch should finally be ready to look at. The amount of commits is due to some duplicates and rebasing, so it looks like it's more than it actually is. Unfortunately, the already applied style changes seem to still be reflected in the changed files, but the main changes are still there to see.
@adrianczuczka I think is best if we sit together to review this PR because I find it hard to distinguish what this PR is fixing, ok?
No problem, I'm happy to do that.
I'm going to close this issue since we already merged a cleaner history
Big changes: Mostly to the clickable list of tours in the header. First, restructured the code so that the OK button in the header actually changes the tour, rather than just pressing a tour in the list. This allows the user to press the back button (on Android) if they choose a tour in the list, and then decide against actually changing it, and gives a use to the OK button, which was previously only there show/hide the tour list interface. Also made the entire tour list interface smaller, replacing unused whitespace with an opaque background. Clicking this opaque part is the same as the back button. Shown below is a comparison of the changes.
Next change is in the list of tour places. Before, holding your finger on one of the places would make it go black: a feature of TouchableHighlight. Changed this to have no effect when holding your finger on a tour place. Also moved the places' respective numbers to the title header to use space better. When clicking on a tour place, there is now a slide up/down animation, and the X button is replaced with a down arrow. This is a comparison of the old tour list versus the new one: And the old tour list place versus the new one: