
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
react-native-google-maps-directions
Advanced tools
A tiny module that uses the React Native Linking API to get directions using Google Maps by opening it in the default browser or app if installed.
$ npm install --save react-native-google-maps-directions
$ yarn add react-native-google-maps-directions
import getDirections from 'react-native-google-maps-directions'
export default class gmapsDirections extends Component {
handleGetDirections = () => {
const data = {
source: {
latitude: -33.8356372,
longitude: 18.6947617
},
destination: {
latitude: -33.8600024,
longitude: 18.697459
},
params: [
{
key: "dirflg",
value: "w"
}
]
}
getDirections(data)
}
render() {
return (
<View style={styles.container}>
<Button onPress={this.handleGetDirections} title="Get Directions" />
</View>
);
}
}
The module exports a single getDirections function that takes a object as its argument. The object should have destination (Where your coming from) and source (Where you going to) both of which have latitude and longitude number properties.
Additionaly parameters can be added as key-value pairs to the params array (optional). The supported parameters are listed here. For example, in the code above, the key-value pair dirflg and w tells google maps to provide the directions with travel mode set to walking.
Contributions are welcome. Please open up an issue or create PR if you would like to help out.
Note: If editing the README, please conform to the standard-readme specification.
Licensed under the MIT License.
FAQs
Get direction using Google Maps in React Native
The npm package react-native-google-maps-directions receives a total of 406 weekly downloads. As such, react-native-google-maps-directions popularity was classified as not popular.
We found that react-native-google-maps-directions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.