fixing android build

This commit is contained in:
Roland Osborne 2023-10-04 22:53:32 -07:00
parent 9c3c50c0b7
commit f0dc45fe10
3 changed files with 5 additions and 5 deletions

View File

@ -77,7 +77,7 @@ export function Login() {
{ !state.agree && ( { !state.agree && (
<MatIcons name={'checkbox-blank-outline'} size={20} color={Colors.primary} /> <MatIcons name={'checkbox-blank-outline'} size={20} color={Colors.primary} />
)} )}
<Text style={styles.agreetermstext}>{ state.strigs.agree }</Text> <Text style={styles.agreetermstext}>{ state.strings.agree }</Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
)} )}

View File

@ -60,7 +60,7 @@ export function Reset() {
{ !state.agree && ( { !state.agree && (
<MatIcons name={'checkbox-blank-outline'} size={20} color={Colors.primary} /> <MatIcons name={'checkbox-blank-outline'} size={20} color={Colors.primary} />
)} )}
<Text style={styles.agreetermstext}>{state.string.agree}</Text> <Text style={styles.agreetermstext}>{state.strings.agree}</Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
)} )}

View File

@ -1,10 +1,10 @@
import { Alert, View, ScrollView, TouchableOpacity, StatusBar, Text, Image, Modal } from 'react-native'; import { Alert, View, ScrollView, TouchableOpacity, StatusBar, Text, Image, Modal, Appearance } from 'react-native';
import { useState, useEffect, useContext } from 'react'; import { useState, useEffect, useContext } from 'react';
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context'; import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { createDrawerNavigator } from '@react-navigation/drawer'; import { createDrawerNavigator } from '@react-navigation/drawer';
import { createStackNavigator } from '@react-navigation/stack'; import { createStackNavigator } from '@react-navigation/stack';
import { NavigationContainer } from '@react-navigation/native'; import { NavigationContainer, DarkTheme, LightTheme } from '@react-navigation/native';
import Ionicons from 'react-native-vector-icons/AntDesign'; import Ionicons from 'react-native-vector-icons/AntDesign';
import MatIcons from 'react-native-vector-icons/MaterialCommunityIcons'; import MatIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import { useSession } from './useSession.hook'; import { useSession } from './useSession.hook';
@ -407,7 +407,7 @@ export function Session({ sharing, clearSharing }) {
}, [state.ringing]); }, [state.ringing]);
return ( return (
<NavigationContainer> <NavigationContainer theme={Appearance.getColorScheme() === 'dark' ? DarkTheme : LightTheme}>
<View style={styles.body}> <View style={styles.body}>
{ state.firstRun == true && ( { state.firstRun == true && (
<SafeAreaView edges={['top', 'bottom']} style={styles.firstRun}> <SafeAreaView edges={['top', 'bottom']} style={styles.firstRun}>