|
1 | 1 | import React from 'react'; |
2 | 2 | import {Component} from 'react'; |
3 | | -import { Alert, InteractionManager, View, Text, BackHandler } from 'react-native'; |
| 3 | +import { Alert, InteractionManager, View, Text, BackHandler, Linking } from 'react-native'; |
4 | 4 | import { NavigationContainer } from '@react-navigation/native'; |
5 | 5 | import {storeData,fetchData} from './src/utils/store'; |
6 | 6 |
|
7 | 7 | import AppNavigation from './src/components/app-navigation'; |
| 8 | + |
| 9 | + |
8 | 10 | import {Spinner} from 'native-base'; |
9 | 11 | import BackgroundGeolocation, { |
10 | 12 | State, |
@@ -318,6 +320,12 @@ class NotificationLocalisation extends Component { |
318 | 320 | <Dialog.Description style={{lineHeight: 24,textAlign: 'center'}}> |
319 | 321 | Overland will use your location in the background. You can stop tracking at any time. |
320 | 322 | </Dialog.Description> |
| 323 | + <View style={{alignItems: 'center'}}> |
| 324 | + <Text style={{fontSize: 16, textDecorationLine: 'underline',marginTop: 20,marginBottom: 20,color: "#007ff9"}} |
| 325 | + onPress={() => {Linking.openURL('http://htmlpreview.github.io/?https://github.com/OpenHumans/Overland_android/blob/dev/privacy_policy.html')}}> |
| 326 | + Access to privacy policy |
| 327 | + </Text> |
| 328 | + </View> |
321 | 329 | <View style={{marginTop:28,marginBottom: 14,flexDirection: 'row', alignItems: 'center',justifyContent:'space-between'}} > |
322 | 330 | <Dialog.Button label="No Thanks" onPress={this.handleQuit} style={{fontWeight:"bold"}} wrapperStyle={{height: 52}} color="#007ff9"/> |
323 | 331 | <Dialog.Button label="Turn On" onPress={this.handleStart} style={{backgroundColor: '#007ff9',borderRadius:5,paddingHorizontal:18,paddingVertical:14,fontWeight:"bold"}} wrapperStyle={{height: 52}} color="#fff"/> |
|
0 commit comments