Skip to content
This repository was archived by the owner on Dec 3, 2022. It is now read-only.

Commit 5044bca

Browse files
slorbersatya164
andauthored
Update src/Hooks.ts
Co-Authored-By: Satyajit Sahoo <[email protected]>
1 parent 88b61a7 commit 5044bca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export const useFocusEffect = (callback: EffectCallback) => {
189189

190190
export const useIsFocused = () => {
191191
const navigation = useNavigation();
192-
const getNavigation = useGetter(useNavigation());
192+
const getNavigation = useGetter(navigation);
193193
const [focused, setFocused] = useState(navigation.isFocused);
194194

195195
useEffect(() => {

0 commit comments

Comments
 (0)