-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
90 additions
and
57 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,67 +1,69 @@ | ||
/*global require, module, fetch*/ | ||
|
||
import React, { Component } from 'react' | ||
import { | ||
Text, | ||
Image, | ||
View, | ||
LinkingIOS, | ||
Linking, | ||
StyleSheet, | ||
TouchableHighlight, | ||
} from 'react-native' | ||
|
||
|
||
class MnmAbout extends Component { | ||
render() { | ||
return ( | ||
<View style={styles.container}> | ||
<Image source={{uri: 'logo_apsl'}} style={styles.image} /> | ||
<Text style={styles.madeBy}>Made with ❤️ by APSL</Text> | ||
<TouchableHighlight | ||
onPress={() => { | ||
LinkingIOS.openURL('http://publicsource.apple.com/license/apsl/'); | ||
}} | ||
underlayColor="#FFFFFF" | ||
style={styles.license}> | ||
<Text style={styles.text}> | ||
Released under APSL license, 2015 | ||
</Text> | ||
</TouchableHighlight> | ||
<Text style={styles.text}> | ||
Thanks to meneame.net and the React Native community | ||
</Text> | ||
</View> | ||
); | ||
} | ||
render() { | ||
return ( | ||
<View style={styles.container}> | ||
<TouchableHighlight | ||
onPress={() => {Linking.openURL('https://www.apsl.net/')}} | ||
> | ||
<View style={styles.logoContainer}> | ||
<Image source={require('./img/apsl.png')} style={styles.image} /> | ||
<Text style={styles.madeBy}>Made with ❤️ by APSL</Text> | ||
</View> | ||
</TouchableHighlight> | ||
<TouchableHighlight | ||
onPress={() => {Linking.openURL('http://publicsource.apple.com/license/apsl/')}} | ||
underlayColor="#FFFFFF" | ||
style={styles.license} | ||
> | ||
<Text style={styles.text}>Released under APSL license, 2015</Text> | ||
</TouchableHighlight> | ||
<Text style={styles.text}>Thanks to meneame.net and the React Native community</Text> | ||
</View> | ||
); | ||
} | ||
} | ||
|
||
var styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#FAFAFA', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
madeBy: { | ||
textAlign: 'center', | ||
fontWeight: '300', | ||
}, | ||
image: { | ||
width: 75, | ||
height: 75, | ||
marginTop: 25, | ||
}, | ||
license: { | ||
textAlign: 'center', | ||
marginTop: 10, | ||
}, | ||
text: { | ||
marginTop: 10, | ||
paddingLeft: 20, | ||
paddingRight: 20, | ||
fontWeight: '300', | ||
textAlign: 'center', | ||
} | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#FAFAFA', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
logoContainer: { | ||
flex: 1, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
madeBy: { | ||
fontWeight: '300', | ||
textAlign: 'center', | ||
}, | ||
image: { | ||
width: 75, | ||
height: 75, | ||
}, | ||
license: { | ||
marginTop: 10, | ||
}, | ||
text: { | ||
marginTop: 20, | ||
marginLeft: 20, | ||
marginRight: 20, | ||
fontWeight: '300', | ||
textAlign: 'center', | ||
} | ||
}); | ||
|
||
module.exports = MnmAbout; |
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.