Move files to lib folder
This commit is contained in:
parent
d8d8ac35f8
commit
cec664c8d0
26 changed files with 58 additions and 59 deletions
|
@ -10,9 +10,9 @@ import RenderHtml from 'react-native-render-html';
|
||||||
import { useNavigation } from '@react-navigation/native';
|
import { useNavigation } from '@react-navigation/native';
|
||||||
import { useSelector } from 'react-redux';
|
import { useSelector } from 'react-redux';
|
||||||
|
|
||||||
import { Colors } from '@/constants/Colors';
|
import { Colors } from '@/lib/constants/Colors';
|
||||||
import { useColorScheme } from '@/hooks/useColorScheme';
|
import { useColorScheme } from '@/lib/hooks/useColorScheme';
|
||||||
import { ThemedView } from '@/components/ThemedView';
|
import { ThemedView } from '@/lib/components/ThemedView';
|
||||||
|
|
||||||
export default function CategoryScreen() {
|
export default function CategoryScreen() {
|
||||||
const colorScheme = useColorScheme() ?? 'light';
|
const colorScheme = useColorScheme() ?? 'light';
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
|
import React from 'react';
|
||||||
import { Stack } from 'expo-router';
|
import { Stack } from 'expo-router';
|
||||||
import { StyleSheet, TextInput, TouchableOpacity } from 'react-native';
|
import { StyleSheet, TextInput, TouchableOpacity } from 'react-native';
|
||||||
import { router } from 'expo-router';
|
import { router } from 'expo-router';
|
||||||
// import DeviceInfo from 'react-native-device-info';
|
// import DeviceInfo from 'react-native-device-info';
|
||||||
|
|
||||||
import { ThemedText } from '@/components/ThemedText';
|
import { ThemedText } from '@/lib/components/ThemedText';
|
||||||
import { ThemedView } from '@/components/ThemedView';
|
import { ThemedView } from '@/lib/components/ThemedView';
|
||||||
import { useToken } from '@/context/AppProvider';
|
import { useToken } from '@/lib/context/AppProvider';
|
||||||
import { Colors } from '@/constants/Colors';
|
import { Colors } from '@/lib/constants/Colors';
|
||||||
import React from 'react';
|
import { useColorScheme } from '@/lib/hooks/useColorScheme';
|
||||||
import { useColorScheme } from '@/hooks/useColorScheme';
|
import { Message } from '@/lib/services/message';
|
||||||
import { Message } from '@/services/message';
|
import { Request } from '@/lib/services/request';
|
||||||
import { Request } from '@/services/request';
|
|
||||||
|
|
||||||
export default function OnboardStartScreen() {
|
export default function OnboardStartScreen() {
|
||||||
const colorScheme = useColorScheme() ?? 'light';
|
const colorScheme = useColorScheme() ?? 'light';
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { Tabs } from 'expo-router';
|
import { Tabs } from 'expo-router';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { TabBarIcon } from '@/components/navigation/TabBarIcon';
|
import { TabBarIcon } from '@/lib/components/navigation/TabBarIcon';
|
||||||
import { Colors } from '@/constants/Colors';
|
import { Colors } from '@/lib/constants/Colors';
|
||||||
import { useColorScheme } from '@/hooks/useColorScheme';
|
import { useColorScheme } from '@/lib/hooks/useColorScheme';
|
||||||
|
|
||||||
export default function TabLayout() {
|
export default function TabLayout() {
|
||||||
const colorScheme = useColorScheme();
|
const colorScheme = useColorScheme();
|
||||||
|
|
|
@ -14,14 +14,14 @@ import type { AutocompleteDropdownRef } from 'react-native-autocomplete-dropdown
|
||||||
import { AutocompleteDropdown } from 'react-native-autocomplete-dropdown';
|
import { AutocompleteDropdown } from 'react-native-autocomplete-dropdown';
|
||||||
import Modal from "react-native-modal";
|
import Modal from "react-native-modal";
|
||||||
|
|
||||||
import { ThemedText } from '@/components/ThemedText';
|
import { ThemedText } from '@/lib/components/ThemedText';
|
||||||
import { ThemedView } from '@/components/ThemedView';
|
import { ThemedView } from '@/lib/components/ThemedView';
|
||||||
import { Colors } from '@/constants/Colors';
|
import { Colors } from '@/lib/constants/Colors';
|
||||||
import { useColorScheme } from '@/hooks/useColorScheme';
|
import { useColorScheme } from '@/lib/hooks/useColorScheme';
|
||||||
import { Request } from '@/services/request';
|
import { Request } from '@/lib/services/request';
|
||||||
import List from '@/components/List';
|
import List from '@/lib/components/List';
|
||||||
import { store } from '@/store/store';
|
import { store } from '@/lib/store/store';
|
||||||
import { setViewCategory } from '@/store/dataStore';
|
import { setViewCategory } from '@/lib/store/dataStore';
|
||||||
|
|
||||||
export default function ExploreScreen() {
|
export default function ExploreScreen() {
|
||||||
const colorScheme = useColorScheme() ?? 'light';
|
const colorScheme = useColorScheme() ?? 'light';
|
||||||
|
|
|
@ -3,17 +3,17 @@ import { StyleSheet, ScrollView, SafeAreaView, View, StatusBar } from 'react-nat
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import CalendarPicker from 'react-native-calendar-picker';
|
import CalendarPicker from 'react-native-calendar-picker';
|
||||||
import Ionicons from '@expo/vector-icons/Ionicons';
|
import Ionicons from '@expo/vector-icons/Ionicons';
|
||||||
|
|
||||||
import { ThemedText } from '@/components/ThemedText';
|
|
||||||
import { ThemedView } from '@/components/ThemedView';
|
|
||||||
import { Colors } from '@/constants/Colors';
|
|
||||||
import { useColorScheme } from '@/hooks/useColorScheme';
|
|
||||||
import { useToken } from '@/context/AppProvider';
|
|
||||||
import { Request } from '@/services/request';
|
|
||||||
import List from '@/components/List';
|
|
||||||
import { useIsFocused } from '@react-navigation/core';
|
import { useIsFocused } from '@react-navigation/core';
|
||||||
import { useSelector } from 'react-redux';
|
import { useSelector } from 'react-redux';
|
||||||
|
|
||||||
|
import { ThemedText } from '@/lib/components/ThemedText';
|
||||||
|
import { ThemedView } from '@/lib/components/ThemedView';
|
||||||
|
import { Colors } from '@/lib/constants/Colors';
|
||||||
|
import { useColorScheme } from '@/lib/hooks/useColorScheme';
|
||||||
|
import { useToken } from '@/lib/context/AppProvider';
|
||||||
|
import { Request } from '@/lib/services/request';
|
||||||
|
import List from '@/lib/components/List';
|
||||||
|
|
||||||
export default function HomeScreen() {
|
export default function HomeScreen() {
|
||||||
const colorScheme = useColorScheme() ?? 'light';
|
const colorScheme = useColorScheme() ?? 'light';
|
||||||
const isFocused = useIsFocused();
|
const isFocused = useIsFocused();
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { Image, SafeAreaView, ScrollView, StatusBar, StyleSheet, Switch, View, Dimensions } from 'react-native';
|
import { Image, SafeAreaView, ScrollView, StatusBar, StyleSheet, Switch, View, Dimensions } from 'react-native';
|
||||||
import Mapbox, { Callout, Camera, MapView, PointAnnotation } from "@rnmapbox/maps";
|
import Mapbox, { Callout, Camera, MapView, PointAnnotation } from "@rnmapbox/maps";
|
||||||
|
import { useSelector } from 'react-redux';
|
||||||
|
import { useIsFocused } from '@react-navigation/core';
|
||||||
|
|
||||||
Mapbox.setAccessToken( "pk.eyJ1IjoibWFhcnRlbnZyOTgiLCJhIjoiY2x6ZDFqMGp1MGVyejJrczhqcXpvYm9iYiJ9.XvYcL62dWiJQiFmG6mOoug" );
|
Mapbox.setAccessToken( "pk.eyJ1IjoibWFhcnRlbnZyOTgiLCJhIjoiY2x6ZDFqMGp1MGVyejJrczhqcXpvYm9iYiJ9.XvYcL62dWiJQiFmG6mOoug" );
|
||||||
|
|
||||||
import { ThemedText } from '@/components/ThemedText';
|
import { ThemedText } from '@/lib/components/ThemedText';
|
||||||
import { ThemedView } from '@/components/ThemedView';
|
import { ThemedView } from '@/lib/components/ThemedView';
|
||||||
import { Colors } from '@/constants/Colors';
|
import { Colors } from '@/lib/constants/Colors';
|
||||||
import { useColorScheme } from '@/hooks/useColorScheme';
|
import { useColorScheme } from '@/lib/hooks/useColorScheme';
|
||||||
import List from '@/components/List';
|
import List from '@/lib/components/List';
|
||||||
import { Request } from '@/services/request';
|
import { Request } from '@/lib/services/request';
|
||||||
import { useIsFocused } from '@react-navigation/core';
|
|
||||||
import { useSelector } from 'react-redux';
|
|
||||||
|
|
||||||
export default function MapScreen() {
|
export default function MapScreen() {
|
||||||
const colorScheme = useColorScheme() ?? 'light';
|
const colorScheme = useColorScheme() ?? 'light';
|
||||||
|
|
|
@ -6,22 +6,21 @@ import {
|
||||||
StatusBar,
|
StatusBar,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
Alert,
|
Alert,
|
||||||
TextInput,
|
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import { useRouter } from 'expo-router';
|
import { useRouter } from 'expo-router';
|
||||||
import Ionicons from '@expo/vector-icons/Ionicons';
|
import Ionicons from '@expo/vector-icons/Ionicons';
|
||||||
import { useSelector } from 'react-redux';
|
import { useSelector } from 'react-redux';
|
||||||
|
|
||||||
import { ThemedText } from '@/components/ThemedText';
|
import { ThemedText } from '@/lib/components/ThemedText';
|
||||||
import { ThemedView } from '@/components/ThemedView';
|
import { ThemedView } from '@/lib/components/ThemedView';
|
||||||
import { Colors } from '@/constants/Colors';
|
import { Colors } from '@/lib/constants/Colors';
|
||||||
import { useColorScheme } from '@/hooks/useColorScheme';
|
import { useColorScheme } from '@/lib/hooks/useColorScheme';
|
||||||
import { useToken } from '@/context/AppProvider';
|
import { useToken } from '@/lib/context/AppProvider';
|
||||||
import { Message } from '@/services/message';
|
import { Message } from '@/lib/services/message';
|
||||||
import { Request } from '@/services/request';
|
import { Request } from '@/lib/services/request';
|
||||||
import CustomModal from '@/components/EditModal';
|
import CustomModal from '@/lib/components/EditModal';
|
||||||
import { store } from '@/store/store';
|
import { store } from '@/lib/store/store';
|
||||||
import { setSession, setReloadCalendar } from '@/store/dataStore';
|
import { setSession, setReloadCalendar } from '@/lib/store/dataStore';
|
||||||
|
|
||||||
export default function SettingsScreen() {
|
export default function SettingsScreen() {
|
||||||
const colorScheme = useColorScheme() ?? 'light';
|
const colorScheme = useColorScheme() ?? 'light';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { useFonts } from 'expo-font';
|
import { useFonts } from 'expo-font';
|
||||||
import { Slot, SplashScreen, Stack } from 'expo-router';
|
import { SplashScreen, Stack } from 'expo-router';
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
import 'react-native-reanimated';
|
import 'react-native-reanimated';
|
||||||
|
@ -7,9 +7,9 @@ import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native
|
||||||
import Toast from 'react-native-toast-message';
|
import Toast from 'react-native-toast-message';
|
||||||
import { AutocompleteDropdownContextProvider } from 'react-native-autocomplete-dropdown';
|
import { AutocompleteDropdownContextProvider } from 'react-native-autocomplete-dropdown';
|
||||||
|
|
||||||
import { AppProvider } from '@/context/AppProvider';
|
import { AppProvider } from '@/lib/context/AppProvider';
|
||||||
import { useColorScheme } from '@/hooks/useColorScheme';
|
import { useColorScheme } from '@/lib/hooks/useColorScheme';
|
||||||
import { store } from '@/store/store';
|
import { store } from '@/lib/store/store';
|
||||||
|
|
||||||
// Prevent the splash screen from auto-hiding before asset loading is complete.
|
// Prevent the splash screen from auto-hiding before asset loading is complete.
|
||||||
SplashScreen.preventAutoHideAsync();
|
SplashScreen.preventAutoHideAsync();
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import React, { useEffect } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
import { Redirect, router, useRouter } from 'expo-router';
|
import { Redirect, router, useRouter } from 'expo-router';
|
||||||
|
|
||||||
import { ThemedText } from '@/components/ThemedText';
|
import { ThemedText } from '@/lib/components/ThemedText';
|
||||||
import { ThemedView } from '@/components/ThemedView';
|
import { ThemedView } from '@/lib/components/ThemedView';
|
||||||
import { useToken } from '@/context/AppProvider';
|
import { useToken } from '@/lib/context/AppProvider';
|
||||||
import { Request } from '@/services/request';
|
import { Request } from '@/lib/services/request';
|
||||||
import { store } from '@/store/store';
|
import { store } from '@/lib/store/store';
|
||||||
import { setSession } from '@/store/dataStore';
|
import { setSession } from '@/lib/store/dataStore';
|
||||||
|
|
||||||
|
|
||||||
export default function OnboardStartScreen() {
|
export default function OnboardStartScreen() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue