Skip to content

Commit

Permalink
fix: purchase button disappears (#11492)
Browse files Browse the repository at this point in the history
* get rid of now unused native-code-version

* update license date

* don't support redirecting to home from webview
  • Loading branch information
brainbicycle committed Feb 5, 2025
1 parent 5b2c6af commit 0f9bbfe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2012-2022 Art.sy, Inc.
Copyright (c) 2012-2025 Art.sy, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eigen",
"version": "1.21.52",
"native-code-version": 44,
"license": "MIT",
"description": "Artsy mobile app.",
"engines": {
"node": "20.x",
Expand Down Expand Up @@ -92,7 +92,6 @@
"react-native"
],
"contributors": "See docs/thanks.md",
"license": "MIT",
"bugs": {
"url": "https://github.com/artsy/eigen/issues"
},
Expand Down
8 changes: 8 additions & 0 deletions src/app/Components/ArtsyWebView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,14 @@ export const ArtsyWebView = forwardRef<
return
}

// TODO: For not we are not redirecting to home from webviews because of artsy logo
// in purchase flow breaking things. We should instead hide the artsy logo or not redirect to home
// when in eigen purchase flow.
if (result.type === "match" && result.module === "Home") {
stopLoading(true)
return
}

// if it's a route that we know we don't have a native view for, keep it in the webview
// only vanityURLs which do not have a native screen ends up in the webview. So also keep in webview for VanityUrls
// TODO:- Handle cases where a vanityURl lands in a webview and then webview url navigation state changes
Expand Down

0 comments on commit 0f9bbfe

Please sign in to comment.