Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
Updated readme for Capacitor 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashley Medway committed Jun 29, 2021
1 parent 9ff37b1 commit 3b82125
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,11 @@ Capacitor plugin that allows your app to start native navigation
## Usage

```ts
import { Plugins } from "@capacitor/core";
const { StartNavigationPlugin } = Plugins;

//
// with type support
import { StartNavigationPlugin } from "@proteansoftware/capacitor-start-navigation";
const startNavigation = new StartNavigationPlugin();

//
// alternatively - without types
const { StartNavigationPlugin } = Plugins;
import { StartNavigation } from "@proteansoftware/capacitor-start-navigation";

//
// launches native maps with directions to Warwick, UK
StartNavigationPlugin.launchMapsApp({
StartNavigation.launchMapsApp({
latitude: 52.28333,
longitude: -1.58333,
name: "Example location"
Expand Down

0 comments on commit 3b82125

Please sign in to comment.