diff --git a/apps/examples/tsconfig.json b/apps/examples/tsconfig.json index c42678a9c7..9466ebbae0 100644 --- a/apps/examples/tsconfig.json +++ b/apps/examples/tsconfig.json @@ -1,4 +1,11 @@ { "extends": "../../tsconfig.json", - "include": ["**/*.ts", "**/*.tsx", "**/*.js"], + "compilerOptions": { + "paths": { + "react-native-screens": ["src"], + "react-native-screens/*": ["src/*"], + "@react-navigation/*": ["react-navigation/packages/*/src"] + } + }, + "include": ["**/*.ts", "**/*.tsx", "**/*.js"] } diff --git a/apps/test-examples/tsconfig.json b/apps/test-examples/tsconfig.json index 19aefad26a..9466ebbae0 100644 --- a/apps/test-examples/tsconfig.json +++ b/apps/test-examples/tsconfig.json @@ -1,4 +1,11 @@ { "extends": "../../tsconfig.json", + "compilerOptions": { + "paths": { + "react-native-screens": ["src"], + "react-native-screens/*": ["src/*"], + "@react-navigation/*": ["react-navigation/packages/*/src"] + } + }, "include": ["**/*.ts", "**/*.tsx", "**/*.js"] } diff --git a/tsconfig.json b/tsconfig.json index bb85e1ba00..e79dd74079 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,8 +3,7 @@ "baseUrl": ".", "paths": { "react-native-screens": ["src"], - "react-native-screens/*": ["src/*"], - "@react-navigation/*": ["react-navigation/packages/*/src"] + "react-native-screens/*": ["src/*"] }, "allowUnreachableCode": false, "allowUnusedLabels": false,