Skip to content

Commit

Permalink
Merge pull request #35815 from kubabutkiewicz/ts-migration/react-navi…
Browse files Browse the repository at this point in the history
…gation-mock
  • Loading branch information
francoisl authored Feb 6, 2024
2 parents c908d76 + 17b0830 commit b5bb986
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {useIsFocused as realUseIsFocused} from '@react-navigation/native';

// We only want this mocked for storybook, not jest
const useIsFocused = process.env.NODE_ENV === 'test' ? realUseIsFocused : () => true;
const useIsFocused: typeof realUseIsFocused = process.env.NODE_ENV === 'test' ? realUseIsFocused : () => true;

export * from '@react-navigation/core';
export * from '@react-navigation/native';
Expand Down

0 comments on commit b5bb986

Please sign in to comment.