Skip to content

Add link styles for sidebar footer#185

Merged
tgolen merged 6 commits intomasterfrom
shawn-sidebar-footer-links
Aug 17, 2020
Merged

Add link styles for sidebar footer#185
tgolen merged 6 commits intomasterfrom
shawn-sidebar-footer-links

Conversation

@shawnborton
Copy link
Contributor

@shawnborton shawnborton commented Aug 15, 2020

Added links that open to TestFlight & latest APK.

Fixes #93

image

@shawnborton shawnborton self-assigned this Aug 15, 2020
@AndrewGable AndrewGable requested review from tgolen and removed request for AndrewGable August 15, 2020 20:21
@AndrewGable AndrewGable changed the title [WIP] Add link styles for sidebar footer Add link styles for sidebar footer Aug 15, 2020
@AndrewGable
Copy link
Contributor

@tgolen - Ready for review!

constructor(props) {
super(props);

this.openTestFlightLink = this.openTestFlightLink.bind(this);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These don't need to be bound because there is no references to this inside the methods.

<View style={[styles.flexRow]}>
<Text
style={[styles.sidebarFooterLink, styles.mr2]}
onPress={this.openTestFlightLink}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there is no logic happening in the method, I wouldn't bother with those methods, and just change this to:

Suggested change
onPress={this.openTestFlightLink}
onPress={Linking.openURL('https://testflight.apple.com/join/vBYbMRQG')}

Better yet... we could create an <Anchor href="https://testflight.apple.com/join/vBYbMRQG"> component which could be reused quite a bit I think.

@AndrewGable
Copy link
Contributor

Updated with <Anchor> 👍

@AndrewGable AndrewGable requested a review from tgolen August 16, 2020 03:09
@AndrewGable AndrewGable self-assigned this Aug 16, 2020
Copy link
Contributor

@tgolen tgolen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@tgolen
Copy link
Contributor

tgolen commented Aug 17, 2020

Ah, conflicts :(

@AndrewGable
Copy link
Contributor

Fixed conflicts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add link to latest APK/TestFlight somewhere

3 participants