This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { ReactElement } from 'react'; | |
import { NavigationContainer } from '@react-navigation/native'; | |
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; | |
import { createNativeStackNavigator } from 'react-native-screens/native-stack'; | |
import { SafeAreaProvider } from 'react-native-safe-area-context'; | |
import Icon from 'react-native-vector-icons/Ionicons'; | |
import Home from 'screens/home'; | |
import Discover from 'screens/discover'; | |
import Itinerary from 'screens/itinerary'; | |
import Search from 'screens/search'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, useRef } from 'react'; | |
import { ScrollView } from 'react-native'; | |
import { Navigation } from 'react-native-navigation'; | |
const useScrollToTop = ({ | |
selectedTabIndex, | |
}: { | |
selectedTabIndex: number; | |
}): React.RefObject<ScrollView> => { | |
const scrollViewRef = useRef<ScrollView>(null); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace XUnitTestProject | |
{ | |
using Xunit; | |
public static class SwitchStatementMapper | |
{ | |
// Don't judge me, it's only for educational purposes :) | |
public static bool Map(string str) => str switch | |
{ | |
"true" => true, |
NewerOlder