-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Make download links cross-platform #476
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f359b1d
make download links cross-platform
roryabraham 72d65e1
fix js style
roryabraham bcb5bb7
enable .desktop.js files
roryabraham 1e40b31
move platform-specific links to their own file
roryabraham a48443c
update README
roryabraham 868317d
fix style and linter
roryabraham cfe831f
merge master into Rory-FixLinks
roryabraham ee240ce
remove incorrect comma from README
roryabraham 42937c2
make RegexUtils a commonJS module
roryabraham d178df1
update README and use index.browser.js instead of index.webify.js
roryabraham 32adfe4
update comment to say default is web
roryabraham 4fc3359
update README again, created separate section for Platform-Specific f…
roryabraham aace236
nix RegexUtils from webpack file
roryabraham 727506f
use website instead of browser
roryabraham 1089626
delete RegexUtils
roryabraham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| import React from 'react'; | ||
| import {Platform} from 'react-native'; | ||
|
|
||
| import styles from '../../../../style/StyleSheet'; | ||
| import openURLInNewTab from '../../../../lib/openURLInNewTab'; | ||
| import Text from '../../../../components/Text'; | ||
|
|
||
| const AppLinks = () => ( | ||
| <> | ||
| {Platform.OS === 'web' && ( | ||
| <Text | ||
| style={[styles.sidebarFooterLink, styles.mr2]} | ||
| onPress={() => openURLInNewTab('https://chat.expensify.com/Chat.dmg')} | ||
| > | ||
| Desktop | ||
| </Text> | ||
| )} | ||
| {Platform.OS !== 'web' && ( | ||
| <Text | ||
| style={[styles.sidebarFooterLink, styles.mr2]} | ||
| onPress={() => openURLInNewTab('https://chat.expensify.com')} | ||
| > | ||
| Web | ||
| </Text> | ||
| )} | ||
| <Text | ||
| style={[styles.sidebarFooterLink, styles.mr2]} | ||
| onPress={() => openURLInNewTab('https://testflight.apple.com/join/ucuXr4g5')} | ||
| > | ||
| iOS | ||
| </Text> | ||
| <Text | ||
| style={[styles.sidebarFooterLink, styles.mr2]} | ||
| onPress={() => openURLInNewTab('https://play.google.com/apps/internaltest/4700657970395613233')} | ||
| > | ||
| Android | ||
| </Text> | ||
| </> | ||
| ); | ||
|
|
||
| export default AppLinks; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import React from 'react'; | ||
| import styles from '../../../../style/StyleSheet'; | ||
| import openURLInNewTab from '../../../../lib/openURLInNewTab'; | ||
| import Text from '../../../../components/Text'; | ||
|
|
||
| const AppLinks = () => ( | ||
| <> | ||
| <Text | ||
| style={[styles.sidebarFooterLink, styles.mr2]} | ||
| onPress={() => openURLInNewTab('https://chat.expensify.com/')} | ||
| > | ||
| View on web | ||
| </Text> | ||
| </> | ||
| ); | ||
|
|
||
| export default AppLinks; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.