Skip to content

Commit

Permalink
feat(skolengo): add modules used for the integration of Skolengo
Browse files Browse the repository at this point in the history
  • Loading branch information
NonozgYtb committed Aug 26, 2024
1 parent f8f72a0 commit d1020b9
Show file tree
Hide file tree
Showing 3 changed files with 329 additions and 4 deletions.
12 changes: 12 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,16 @@ const config = getDefaultConfig(__dirname);

config.resolver.assetExts.push("pem", "json", "rawjs", "css");

// Documentation: https://docs.expo.dev/versions/latest/config/metro/#mocking-modules
config.resolver.resolveRequest = (context, moduleName, platform) => {
if (moduleName === "openid-client") {
return {
type: "empty",
};
}

// Ensure you call the default resolver.
return context.resolveRequest(context, moduleName, platform);
};

module.exports = config;
Loading

0 comments on commit d1020b9

Please sign in to comment.