-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
fix: fix PopupProps and improve types (close #282, #285) #286
Conversation
6a0c7d4
to
32bd01f
Compare
}; | ||
appsWhiteList?: string[]; | ||
setIsVisible: (isVisible: boolean) => void; | ||
options: ShowLocationProps; |
There was a problem hiding this comment.
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.
bb6f30d
to
fafb0b9
Compare
@@ -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. */ }} |
There was a problem hiding this comment.
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.
There was a problem hiding this 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!
🎉 This PR is included in version 3.2.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR fixes #282, fixes #285:
PopupProps
definition