Add onboarding screen + token check
This commit is contained in:
parent
b951d0a0bc
commit
f5c59f602a
19 changed files with 433 additions and 279 deletions
|
@ -8,6 +8,8 @@ import { useColorScheme } from '@/hooks/useColorScheme';
|
|||
export default function TabLayout() {
|
||||
const colorScheme = useColorScheme();
|
||||
|
||||
console.log('is layout rendering?');
|
||||
|
||||
return (
|
||||
<Tabs
|
||||
screenOptions={{
|
||||
|
|
|
@ -69,7 +69,7 @@ export default function ExploreScreen() {
|
|||
const viewItem = async (item: any) => {
|
||||
await AsyncStorage.setItem('activeCategory', JSON.stringify(item));
|
||||
|
||||
router.push('/explore/category');
|
||||
router.push('/(explore)/category');
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
@ -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