Skip to content

Commit

Permalink
0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
smallpath committed Jun 16, 2017
1 parent 72604f7 commit 7a599fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "psnine",
"version": "0.4.0",
"version": "0.4.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
Expand Down
13 changes: 12 additions & 1 deletion psnine/container/setting/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ class About extends Component {
} catch (err) { }
}

goToRelease = async () => {
let supported = await Linking.canOpenURL(this.state.sourceCodeURL + '/releases');
try {
if (supported)
Linking.openURL(this.state.sourceCodeURL + '/releases');
else
global.toast && global.toast(`未找到浏览器, 如果您使用了冰箱, 请先解冻浏览器`, 2000);
} catch (err) { }
}

linkAuthor = async () => {
Alert.alert(
`联系作者`,
Expand Down Expand Up @@ -130,7 +140,8 @@ class About extends Component {
},
{
title: '更新日志',
desc: this.state.sourceCodeURL + '/releases'
desc: this.state.sourceCodeURL + '/releases',
onPress: this.goToRelease
},
]
return (
Expand Down

0 comments on commit 7a599fe

Please sign in to comment.