Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix PopupProps and improve types (close #282, #285) #286

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

meteorlxy
Copy link
Contributor

@meteorlxy meteorlxy commented Apr 11, 2024

This PR fixes #282, fixes #285:

  • Removes the duplicated PopupProps definition
  • Improves types usage

@meteorlxy meteorlxy changed the title fix: fix PopupProps and improve types (close #285) fix: fix PopupProps and improve types (close #282, #285) Apr 11, 2024
@meteorlxy meteorlxy force-pushed the meteorlxy/fix-types branch from 6a0c7d4 to 32bd01f Compare April 11, 2024 08:13
};
appsWhiteList?: string[];
setIsVisible: (isVisible: boolean) => void;
options: ShowLocationProps;
Copy link
Contributor Author

@meteorlxy meteorlxy Apr 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the fix for #282. We should reuse ShowLocationProps type here.

@meteorlxy meteorlxy force-pushed the meteorlxy/fix-types branch from bb6f30d to fafb0b9 Compare April 11, 2024 11:26
@@ -17,9 +17,6 @@ import { Popup } from 'react-native-map-link';
modalProps={{ // you can put all modal props inside.
animationIn: 'slideInUp'
}}
appsWhiteList={[ /* Array of apps (apple-maps, google-maps, etc...) that you want
to show in the popup, if is undefined or an empty array it will show all supported apps installed on device.*/ ]}
appTitles: {{ /* Optional: you can override app titles. */ }}
Copy link
Contributor Author

@meteorlxy meteorlxy Apr 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact appTitles won't take effect. It should be set in options.appTitles, and so does appsWhiteList. They are all available in options, so I removed them here.

Copy link
Owner

@tschoffelen tschoffelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks for this addition!

@tschoffelen tschoffelen enabled auto-merge April 16, 2024 07:50
@tschoffelen tschoffelen merged commit e68d4ab into tschoffelen:master Apr 16, 2024
2 checks passed
Copy link

🎉 This PR is included in version 3.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] the PopupProps type are duplicated and inconsistent googlePlaceId no longer exists in version 3
2 participants