terms of service acknowledgement #70

Merged
akinwale merged 1 commit from tos into master 2019-10-29 15:00:30 +01:00
2 changed files with 12 additions and 0 deletions
Showing only changes of commit 030b94ce01 - Show all commits

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;