
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-tomtom-maps
Advanced tools
This library is in alpha release and may be unstable for production use.
$ yarn add react-native-tomtom-maps
Need to make small changes in order for Tomtom maps to work.
Add tools name space to <manifest /> element in AndroidManifest.xml
Also add android:allowBackup to application element in the same file
<manifest ...
xmlns:tools="http://schemas.android.com/tools">
....
>
<application ....
...
tools:replace="android:allowBackup"
/>
Add Tomtom maven repository in build.gradle:
allprojects{
repositories{
...
maven {
url 'https://maven.tomtom.com:8443/nexus/content/repositories/releases/'
}
...
}
}
Make sure that your target is IOS 10 and above. So make this change in your pod file.
platform :ios, '10.0'
This package uses Swift. So, in order to use it you need to create one empty Swift file with bridging header. You may remove this file later on. When you add a swift file, Xcode enables Swift for this project. Otherwise you can get compile errors.
Manual installation is advised only if the auto linking does not work for some reason.
First try legacy linking method
$ react-native link react-native-tomtom-maps
If does not work try as below:
Libraries ➜ Add Files to [your project's name]node_modules ➜ react-native-tomtom-maps and add TomtomMaps.xcodeprojlibTomtomMaps.a to your project's Build Phases ➜ Link Binary With LibrariesCmd+R)<android/app/src/main/java/[...]/MainApplication.javaimport biz.aliustaoglu.tomtom.TomtomMapsPackage; to the imports at the top of the filenew TomtomMapsPackage() to the list returned by the getPackages() methodandroid/settings.gradle:
include ':react-native-tomtom-maps'
project(':react-native-tomtom-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-tomtom-maps/android')
android/app/build.gradle:
compile project(':react-native-tomtom-maps')
import TomtomMaps from 'react-native-tomtom-maps';
<TomtomMaps
onMapReady={() => alert('Map is ready!')}
markers={[{ lat: 40.9175, lng: 38.3927, label: 'Giresun' }, { lat: 40.9862, lng: 37.8797, label: 'Ordu' }]}
mapZoom={15}
mapCenter={{ lat: 40.9175, lng: 38.3927 }}
mapOptions={{
tilesType: 'VECTOR',
lang: 'tr-TR',
perspective: '3D'
}}
style={StyleSheet.absoluteFillObject}
/>
Screenshots

FAQs
Tomtom Maps implementation in React Native
We found that react-native-tomtom-maps 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.