lucasmonteiro1 / react-native-open-map Goto Github PK
View Code? Open in Web Editor NEWChoose the application that will open the map
License: MIT License
Choose the application that will open the map
License: MIT License
It used to be the case that a list of applications installed on the users device would pop up when invoked, or, if only Google maps was installed, it would open. This is no longer the functionality on the latest android build. This still works fine in iOS.
First off, great job on the library. I've checked out the code and it's pretty neat. It does exactly what I want without adding too much fluff.
The only thing missing for me is typings for typescript, so I took it upon myself to write them for .show()
.
declare module 'react-native-open-map' {
function show(options: ShowOptions): any;
export interface ShowOptions {
latitude: number;
longitude: number;
title?: string;
cancelText?: string;
actionSheetTitle?: string;
actionSheetMessage?: string;
}
}
Is it possible to show using an address string rather then a lat and lng?
Is it possible to include the title for google maps? Right now I'm seeing google maps open with "unknown location" since it just has the lat/lng
I think the url.js file might just need to be updated to something like this, according to the android doc https://developers.google.com/maps/documentation/urls/android-intents
if (app.name === 'google-maps') { return
${app.prefixe}?q=${lat},${lng}(${encodeURIComponent(title)}); }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.