npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-navigation-apps

v1.0.27

Published

Open & Navigate With External Navigation Apps (Waze,GoogleMaps,iOS Maps) from react native

Downloads

295

Readme

react-native-navigation-apps

Open & Navigate With External Navigation Apps (Waze,GoogleMaps,iOS Maps) from react native

Description

A react native component for using navigation apps like waze google maps and ios maps to navigate by address or latitude and longitude

Example

Installation

npm -i --save react-native-navigation-apps
yarn add react-native-navigation-apps

Usage

import {NavigationApps,actions,googleMapsTravelModes} from "react-native-navigation-apps";

      <NavigationApps
                    iconSize={50}
                    row
                    address='some default address to navigate' // address to navigate by for all apps 
                    waze={{address:'',lat:'',lon:'',action: actions.navigateByAddress}} // specific settings for waze
                    googleMaps={{search,lat:'',lon:'',action: actions.navigateByAddress,travelMode:googleMapsTravelModes.driving}} // specific settings for google maps
                    maps={{search,lat:'',lon:'',action: actions.navigateByAddress,travelMode:mapsTravelModes.driving}} // specific settings for maps
                />

Details

Each app (waze,google maps,ios maps) has its own configuration an action address lat lon and icon For google maps and ios maps also have travelMode (driving,walking,transit) Action can be : navigateByAddress -- navigate to an address by address (text) navigateByLatAndLon -- navigate to an address by Latitude and Longitude searchLocationByLatAndLon -- only search an address (not navigate) by Latitude and Longitude travelMode can be : driving walking transit

Properties

| Prop | Description | Default | | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | | row | align navigation apps as row | false | | viewMode | Set navigation apps display as modal , view or sheet mode | view | | iconSize | icon size of the navigation app | 100 | | modalProps | react native modal props | {} | | modalContainerStyle | Styling modal container | {} | | modalBtnCloseContainerStyle| Styling the modal close button container | {} | | modalBtnCloseStyle | Styling the modal close button | {} | | modalBtnCloseTextStyle | Styling the modal close button text | {} | | modalBtnOpenStyle | Styling the modal open button | {} | | modalBtnOpenTextStyle | Styling the modal open button text | {} | | modalBtnOpenTitle | Title for the the modal open button | '' | | modalBtnCloseTitle | Title for the modal close button | '' | | actionSheetBtnOpenTitle | Title for the the action sheet open button | open action sheet | | actionSheetCloseTitle | Title for the action sheet close button | close action sheet | | actionSheetBtnOpenTextStyle| Styling the action sheet open button text | {} | | actionSheetBtnOpenStyle | Styling the action sheet open button | {} | | address | Set the default address for the navigation apps | '' | | waze | Set configuration for waze : action address lat lon and icon ... if address not set waze will take the address from the default address prop | address:'',action:navigateByAddress,lat:'',lon:'' | | googleMaps |Set configuration for google maps action address lat lon icon and travelMode ... if address not set google maps will take the address from the default address prop | address:'',action:navigateByAddress,lat:'',lon:travelMode:'driving'| | maps | Set configuration for ios maps action address lat lon icon and travelMode ... if address not set ios maps will take the address from the default address prop | address:'',action:navigateByAddress,lat:'',lon:'',travelMode:'driving' |

IOS Usage

To use waze and google maps on iOS devices you must add this lines to the info.plist file

<key>LSApplicationQueriesSchemes</key>
	<array>
		<string>comgooglemaps</string>
		<string>waze</string>
	</array>