Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Commit

Permalink
chore: fix loading back icon on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Dec 14, 2019
1 parent 38a38b0 commit 703edb3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions example/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,23 @@ module.exports = {
}, {}),
},

server: {
enhanceMiddleware: middleware => {
return (req, res, next) => {
const assets = '/packages/stack/src/views/assets';

if (req.url.startsWith(assets)) {
req.url = req.url.replace(
assets,
'/assets/../packages/stack/src/views/assets'
);
}

return middleware(req, res, next);
};
},
},

transformer: {
getTransformOptions: async () => ({
transform: {
Expand Down

0 comments on commit 703edb3

Please sign in to comment.