Skip to content

Commit

Permalink
fix: metro config
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Dec 5, 2023
1 parent 5800465 commit 80f41e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/react-native/template/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ const {getPlatformResolver} = require('@callstack/out-of-tree-platforms');


const config = {
resolver: {
resolveRequest: getPlatformResolver({
platformNameMap: [{visionos: '@callstack/react-native-visionos'}],
}),
},
resolver: {
resolveRequest: getPlatformResolver({
platformNameMap: {visionos: '@callstack/react-native-visionos'},
}),
},
};

module.exports = mergeConfig(getDefaultConfig(__dirname), config);
2 changes: 1 addition & 1 deletion packages/rn-tester/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const config = {
'react-native': path.resolve(__dirname, '../react-native'),
},
resolveRequest: getPlatformResolver({
platformNameMap: [{visionos: '@callstack/react-native-visionos'}],
platformNameMap: {visionos: '@callstack/react-native-visionos'},
}),
},
};
Expand Down

0 comments on commit 80f41e8

Please sign in to comment.