-
Notifications
You must be signed in to change notification settings - Fork 905
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2fec9df
commit 52769ef
Showing
3 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Learn more https://docs.expo.io/guides/customizing-metro | ||
const { getDefaultConfig } = require('expo/metro-config'); | ||
|
||
const config = getDefaultConfig(__dirname); | ||
|
||
// When enabled, the optional code below will allow Metro to resolve | ||
// and bundle source files with TV-specific extensions | ||
// (e.g., *.ios.tv.tsx, *.android.tv.tsx, *.tv.tsx) | ||
// | ||
// Metro will still resolve source files with standard extensions | ||
// as usual if TV-specific files are not found for a module. | ||
// | ||
/* | ||
if (process.env?.EXPO_TV === '1') { | ||
const originalSourceExts = config.resolver.sourceExts; | ||
const tvSourceExts = [ | ||
...originalSourceExts.map((e) => `tv.${e}`), | ||
...originalSourceExts, | ||
]; | ||
config.resolver.sourceExts = tvSourceExts; | ||
} | ||
*/ | ||
|
||
module.exports = config; |
This file contains 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