removing tos from ios as not required

This commit is contained in:
Roland Osborne 2023-03-07 10:52:09 -08:00
parent 4db08d7ebe
commit 5a0a2a8af2

View File

@ -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,6 +138,7 @@ export function Create() {
</View> </View>
)} )}
{ Platform.OS !== 'ios' && (
<View style={styles.tos}> <View style={styles.tos}>
<TouchableOpacity style={styles.viewterms} onPress={actions.showTerms}> <TouchableOpacity style={styles.viewterms} onPress={actions.showTerms}>
<Text style={styles.viewtermstext}>View Terms of Service</Text> <Text style={styles.viewtermstext}>View Terms of Service</Text>
@ -152,9 +153,10 @@ export function Create() {
<Text style={styles.agreetermstext}>I agree to Terms of Service</Text> <Text style={styles.agreetermstext}>I agree to Terms of Service</Text>
</TouchableOpacity> </TouchableOpacity>
</View> </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>