Merge pull request #70 from lbryio/tos

terms of service acknowledgement
This commit is contained in:
Akinwale Ariwodola 2019-10-29 15:00:29 +01:00 committed by GitHub
commit 518285355c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -4,6 +4,7 @@ import { ActivityIndicator, NativeModules, Platform, Text, View } from 'react-na
import AsyncStorage from '@react-native-community/async-storage'; import AsyncStorage from '@react-native-community/async-storage';
import Colors from 'styles/colors'; import Colors from 'styles/colors';
import Constants from 'constants'; // eslint-disable-line node/no-deprecated-api import Constants from 'constants'; // eslint-disable-line node/no-deprecated-api
import Link from 'component/link';
import firstRunStyle from 'styles/firstRun'; import firstRunStyle from 'styles/firstRun';
class WelcomePage extends React.PureComponent { class WelcomePage extends React.PureComponent {
@ -106,6 +107,11 @@ class WelcomePage extends React.PureComponent {
LBRY is a community-controlled content platform where you can find and publish videos, music, books, and LBRY is a community-controlled content platform where you can find and publish videos, music, books, and
more. more.
</Text> </Text>
<Text style={[firstRunStyle.infoParagraph, firstRunStyle.tosParagraph]}>
By continuing, I agree to the{' '}
<Link style={firstRunStyle.tosLink} text={'Terms of Service'} href={'https://lbry.com/termsofservice'} />{' '}
and confirm I am over the age of 13.
</Text>
</View> </View>
); );
} }

View file

@ -209,6 +209,12 @@ const firstRunStyle = StyleSheet.create({
revealIcon: { revealIcon: {
color: Colors.White, color: Colors.White,
}, },
tosLink: {
textDecorationLine: 'underline',
},
tosParagraph: {
marginTop: 48,
},
}); });
export default firstRunStyle; export default firstRunStyle;