Skip to content

Commit 3e7180b

Browse files
committed
Merge branch 'main' into collectioneur/transition-tracker-eslint - leftover change
1 parent 6cd3ec3 commit 3e7180b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

config/eslint/eslint.config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const restrictedImportPaths = [
5555
'ActivityIndicator',
5656
'Animated',
5757
'findNodeHandle',
58+
'InteractionManager',
5859
],
5960
message: [
6061
'',
@@ -65,6 +66,7 @@ const restrictedImportPaths = [
6566
"For 'ScrollView', please use '@components/ScrollView' instead.",
6667
"For 'ActivityIndicator', please use '@components/ActivityIndicator' instead.",
6768
"For 'Animated', please use 'Animated' from 'react-native-reanimated' instead.",
69+
"For 'InteractionManager', please use afterTransition callbacks on Navigation/KeyboardUtils or other alternatives. See contributingGuides/INTERACTION_MANAGER.md.",
6870
].join('\n'),
6971
},
7072
{
@@ -155,6 +157,11 @@ const restrictedImportPaths = [
155157
];
156158

157159
const restrictedImportPatterns = [
160+
{
161+
group: ['**/TransitionTracker', './TransitionTracker', '../TransitionTracker'],
162+
message:
163+
"TransitionTracker is an internal primitive. Please use higher-level APIs (Navigation with 'afterTransition'/'waitForTransition', KeyboardUtils, useConfirmModal). See contributingGuides/INTERACTION_MANAGER.md.",
164+
},
158165
{
159166
group: ['**/assets/animations/**/*.json'],
160167
message: "Do not import animations directly. Please use the '@components/LottieAnimations' import instead.",

0 commit comments

Comments
 (0)