Add onboarding screen + token check
This commit is contained in:
parent
b951d0a0bc
commit
f5c59f602a
19 changed files with 433 additions and 279 deletions
|
@ -1,4 +1,4 @@
|
|||
import {StyleSheet, Platform, ScrollView, SafeAreaView, View, StatusBar, Text} from 'react-native';
|
||||
import {StyleSheet, ScrollView, SafeAreaView, View, StatusBar} from 'react-native';
|
||||
// @ts-ignore
|
||||
import CalendarPicker from 'react-native-calendar-picker';
|
||||
|
||||
|
@ -6,11 +6,19 @@ import {ThemedText} from '@/components/ThemedText';
|
|||
import {ThemedView} from '@/components/ThemedView';
|
||||
import {Colors} from '@/constants/Colors';
|
||||
import {useColorScheme} from '@/hooks/useColorScheme';
|
||||
import React from 'react';
|
||||
import React, {useEffect} from 'react';
|
||||
import Ionicons from '@expo/vector-icons/Ionicons';
|
||||
import {useToken} from '@/context/AppProvider';
|
||||
|
||||
export default function HomeScreen() {
|
||||
const colorScheme = useColorScheme() ?? 'light';
|
||||
const {token, isLoading} = useToken();
|
||||
|
||||
console.log('app token', token);
|
||||
|
||||
useEffect(() => {
|
||||
console.log('token found', token);
|
||||
}, [token]);
|
||||
|
||||
return (
|
||||
<SafeAreaView style={{flex: 1, backgroundColor: Colors[colorScheme].background,}}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue