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 {useLayoutEffect} from 'react'; | |
import { | |
useNavigation, | |
useRoute, | |
getFocusedRouteNameFromRoute, | |
} from '@react-navigation/native'; | |
export function useTabBarHidden( | |
hiddenTabRoutesArray: string[], | |
fallbackRoute: string | undefined, |
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
const Stack = createNativeStackNavigator<RootStackParamList>(); | |
function RootNavigator() { | |
return ( | |
<Stack.Navigator> | |
<Stack.Screen | |
name="Home" | |
component={TabOneScreen} | |
options={{ headerLargeTitle: true, headerTransparent: true }} |
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 logo from "./logo.svg"; | |
import "./App.css"; | |
import { useState, useEffect } from "react"; | |
function App() { | |
const [count, setCount] = useState(0); | |
const [flag, setFlag] = useState(false); | |
function handleClick() { |
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 logo from "./logo.svg"; | |
import "./App.css"; | |
import { useEffect, useState } from "react"; | |
function App() { | |
const [coords, setCoords] = useState({ | |
latitude: null, | |
longitude: null, | |
}); |