-
-
Notifications
You must be signed in to change notification settings - Fork 673
Clean up navigation logic (3/x). #4443
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
Changes from all commits
fb7a49e
fc08d86
6956fc0
bac28e4
59a2d4c
c1ab47e
919c71d
4f1fcff
e7520ac
f06bbad
84c7088
2f02651
86b09d3
909a3f7
b89634a
08c1904
746a9f6
635b13a
3f5bcf3
c5f340d
fd81cc7
a9ab3fc
93d9efa
d1fd30d
deb3015
26f6f23
5abde56
a9c1b44
42396b6
d16cdfa
dada934
6782cfd
2288807
0a218e0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,6 @@ import { | |
| IconLanguage, | ||
| IconMoreHorizontal, | ||
| } from '../common/Icons'; | ||
| import ModalNavBar from '../nav/ModalNavBar'; | ||
| import { | ||
| settingsChange, | ||
| navigateToNotifications, | ||
|
|
@@ -52,7 +51,6 @@ class SettingsScreen extends PureComponent<Props> { | |
|
|
||
| return ( | ||
| <ScrollView style={styles.optionWrapper}> | ||
| <ModalNavBar canGoBack={false} title="Settings" /> | ||
|
Comment on lines
53
to
-55
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh gosh this was inside the ScrollView! That never made any sense. Which... oh, I see, this was quite noticeable on iOS. On Android it could only come up if there was more there than fit vertically. I can make that happen by cranking up the system "Display size" setting plus going into landscape; but otherwise it's pretty unlikely, because we only have a few items on this settings screen. But iOS has the animation where you can tug the scrollable content around even when there's no scrolling to be done, and the "Settings" header would move right along. |
||
| <OptionRow | ||
| Icon={IconNight} | ||
| label="Night mode" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will, but perhaps this is a good time to plug a handy Git feature! This is one I relatively recently discovered and enabled in my gitconfig:
(And
git diff -bis a close relative of-w; they're pretty similar but I tend to find-bis closer to what I'm really looking for in principle.)So here's how the main part of that diff comes out with my normal
git usp, without going back and adding any other flags:The "moved" colors let me see immediately that the code in each of those chunks didn't change beyond getting indented. Then I can match up the chunks by eye, and pretty quickly isolate what's changed. Not as simple as the
git diff -bor-wview, but simple enough that I usually don't feel the need anymore to go reach for that one.(The default colors are different from those and I think less helpful; those colors are also in my posted gitconfig.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, interesting!
It is quite a lot more lines than
git diff -b. I'm not sure how long it'll take until I see this output as simpler, but I'll give it a go and find out! 🙂There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be clear, the output of
git diff -bis definitely simpler than this!I just mean that this is simpler than reading the plain diff (and having to look closely to spot the few bits that changed); and it's enough simpler, giving me enough of what I'd get from
git diff -b, that when I'm in the middle of a review I typically don't feel the need to go reach forgit diff -b.(And I don't just have
-bor-won all the time, because I do want to know about the changes those ignore; when they're relevant, I want to both see those changes, and see the changes with those simplified away, just separately.)