mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
removing tos from ios as not required
This commit is contained in:
parent
4db08d7ebe
commit
5a0a2a8af2
@ -1,4 +1,4 @@
|
|||||||
import { KeyboardAvoidingView, ScrollView, ActivityIndicator, Alert, Modal, Text, TextInput, View, TouchableOpacity } from 'react-native';
|
import { Platform, KeyboardAvoidingView, ScrollView, ActivityIndicator, Alert, Modal, Text, TextInput, View, TouchableOpacity } from 'react-native';
|
||||||
import { styles } from './Create.styled';
|
import { styles } from './Create.styled';
|
||||||
import Ionicons from 'react-native-vector-icons/AntDesign';
|
import Ionicons from 'react-native-vector-icons/AntDesign';
|
||||||
import { useCreate } from './useCreate.hook';
|
import { useCreate } from './useCreate.hook';
|
||||||
@ -138,23 +138,25 @@ export function Create() {
|
|||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<View style={styles.tos}>
|
{ Platform.OS !== 'ios' && (
|
||||||
<TouchableOpacity style={styles.viewterms} onPress={actions.showTerms}>
|
<View style={styles.tos}>
|
||||||
<Text style={styles.viewtermstext}>View Terms of Service</Text>
|
<TouchableOpacity style={styles.viewterms} onPress={actions.showTerms}>
|
||||||
</TouchableOpacity>
|
<Text style={styles.viewtermstext}>View Terms of Service</Text>
|
||||||
<TouchableOpacity style={styles.agreeterms} onPress={() => actions.agree(!state.agree)}>
|
</TouchableOpacity>
|
||||||
{ state.agree && (
|
<TouchableOpacity style={styles.agreeterms} onPress={() => actions.agree(!state.agree)}>
|
||||||
<MatIcons name={'checkbox-outline'} size={20} color={Colors.primary} />
|
{ state.agree && (
|
||||||
)}
|
<MatIcons name={'checkbox-outline'} size={20} color={Colors.primary} />
|
||||||
{ !state.agree && (
|
)}
|
||||||
<MatIcons name={'checkbox-blank-outline'} size={20} color={Colors.primary} />
|
{ !state.agree && (
|
||||||
)}
|
<MatIcons name={'checkbox-blank-outline'} size={20} color={Colors.primary} />
|
||||||
<Text style={styles.agreetermstext}>I agree to Terms of Service</Text>
|
)}
|
||||||
</TouchableOpacity>
|
<Text style={styles.agreetermstext}>I agree to Terms of Service</Text>
|
||||||
</View>
|
</TouchableOpacity>
|
||||||
|
</View>
|
||||||
|
)}
|
||||||
|
|
||||||
<View style={styles.buttons}>
|
<View style={styles.buttons}>
|
||||||
{ state.enabled && state.agree && (
|
{ state.enabled && (state.agree || Platform.OS === 'ios') && (
|
||||||
<TouchableOpacity style={styles.create} onPress={create}>
|
<TouchableOpacity style={styles.create} onPress={create}>
|
||||||
{ state.busy && (
|
{ state.busy && (
|
||||||
<ActivityIndicator size="small" color="#ffffff" />
|
<ActivityIndicator size="small" color="#ffffff" />
|
||||||
@ -164,7 +166,7 @@ export function Create() {
|
|||||||
)}
|
)}
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
)}
|
)}
|
||||||
{ (!state.enabled || !state.agree) && (
|
{ (!state.enabled || (!state.agree && Platform.OS !== 'ios')) && (
|
||||||
<View style={styles.nocreate}>
|
<View style={styles.nocreate}>
|
||||||
<Text style={styles.nocreatetext}>Create Account</Text>
|
<Text style={styles.nocreatetext}>Create Account</Text>
|
||||||
</View>
|
</View>
|
||||||
|
Loading…
Reference in New Issue
Block a user