Skip to content

Fix variable declaration #31

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

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .babelrc
100644 → 100755
Empty file.
Empty file modified .github/FUNDING.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .travis.yml
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ Creates the raw link for the map.
| *end* | `string` that geolocation can understand. | The end location that can be interpreted as a geolocation. See [Apple](https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html#//apple_ref/doc/uid/TP40007899-CH5-SW1) and [Google](https://developers.google.com/maps/documentation/urls/guide#directions-action) docs for more details on how to define geolocations. | `"SOHO, New York, NY"` |
| *navigate_mode* | `string` <br> [`preview`,`navigate`] | Determines whether map should open in preview mode or in navigate mode (with turn-by-turn navigation). <br> This parameter only works in conjunction with `end`. Platform map uses current location as `start` parameter | `"navigate"` <br> *default: `"preview"`* |

**Note:** Combining query with latitude and longitude will override the query parameter.
**Note 1:** Combining query with latitude and longitude will override the query parameter.
**Note 2:** To use google maps on iOS, declare the URL scheme used by the API in your Info.plist file. Follow the step [here](https://developers.google.com/maps/documentation/ios-sdk/start#step_6_declare_the_url_schemes_used_by_the_api)

### Map Actions
To perform certain map actions refer these necessary parameters
Expand Down
Empty file modified __tests__/main.test.js
100644 → 100755
Empty file.
Empty file modified example/.babelrc
100644 → 100755
Empty file.
Empty file modified example/.buckconfig
100644 → 100755
Empty file.
Empty file modified example/.flowconfig
100644 → 100755
Empty file.
Empty file modified example/.gitattributes
100644 → 100755
Empty file.
Empty file modified example/.gitignore
100644 → 100755
Empty file.
Empty file modified example/.watchmanconfig
100644 → 100755
Empty file.
Empty file modified example/App.js
100644 → 100755
Empty file.
Empty file modified example/android/app/BUCK
100644 → 100755
Empty file.
Empty file modified example/android/app/build.gradle
100644 → 100755
Empty file.
Empty file modified example/android/app/proguard-rules.pro
100644 → 100755
Empty file.
Empty file modified example/android/app/src/main/AndroidManifest.xml
100644 → 100755
Empty file.
Empty file modified example/android/app/src/main/java/com/example/MainActivity.java
100644 → 100755
Empty file.
Empty file.
Empty file modified example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified example/android/app/src/main/res/values/strings.xml
100644 → 100755
Empty file.
Empty file modified example/android/app/src/main/res/values/styles.xml
100644 → 100755
Empty file.
Empty file modified example/android/build.gradle
100644 → 100755
Empty file.
Empty file modified example/android/gradle.properties
100644 → 100755
Empty file.
Empty file modified example/android/gradle/wrapper/gradle-wrapper.jar
100644 → 100755
Empty file.
Empty file modified example/android/gradle/wrapper/gradle-wrapper.properties
100644 → 100755
Empty file.
Empty file modified example/android/gradlew.bat
100644 → 100755
Empty file.
Empty file modified example/android/keystores/BUCK
100644 → 100755
Empty file.
Empty file modified example/android/keystores/debug.keystore.properties
100644 → 100755
Empty file.
Empty file modified example/android/settings.gradle
100644 → 100755
Empty file.
Empty file modified example/app.json
100644 → 100755
Empty file.
Empty file modified example/index.android.js
100644 → 100755
Empty file.
Empty file modified example/index.ios.js
100644 → 100755
Empty file.
Empty file modified example/ios/example-tvOS/Info.plist
100644 → 100755
Empty file.
Empty file modified example/ios/example-tvOSTests/Info.plist
100644 → 100755
Empty file.
Empty file modified example/ios/example.xcodeproj/project.pbxproj
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified example/ios/example/AppDelegate.h
100644 → 100755
Empty file.
Empty file modified example/ios/example/AppDelegate.m
100644 → 100755
Empty file.
Empty file modified example/ios/example/Base.lproj/LaunchScreen.xib
100644 → 100755
Empty file.
Empty file.
Empty file modified example/ios/example/Info.plist
100644 → 100755
Empty file.
Empty file modified example/ios/example/main.m
100644 → 100755
Empty file.
Empty file modified example/ios/exampleTests/Info.plist
100644 → 100755
Empty file.
Empty file modified example/ios/exampleTests/exampleTests.m
100644 → 100755
Empty file.
Empty file modified example/package-lock.json
100644 → 100755
Empty file.
Empty file modified example/package.json
100644 → 100755
Empty file.
Empty file modified example/tester.js
100644 → 100755
Empty file.
5 changes: 2 additions & 3 deletions index.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,10 @@ export default function open(params) {

export function createOpenLink({ provider, ...params }) {
// Returns a delayed async function that opens when executed
let mapProvider = provider;
if (!provider) {
defaultProvider = (Platform.OS === 'ios') ? 'apple' : 'google';
mapProvider = (Platform.OS === 'ios') ? 'apple' : 'google';
}

let mapProvider = provider || defaultProvider;
// Allow override provider, otherwise use the default provider
const mapLink = createMapLink({ provider: mapProvider, ...params });
return async () => Linking.openURL(mapLink).catch(err => console.error('An error occurred', err));
Expand Down
Empty file modified package-lock.json
100644 → 100755
Empty file.
Empty file modified package.json
100644 → 100755
Empty file.