
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
react-native-tpl-maps
Advanced tools
React Native TPL Maps Android, iOS pacakge for React Native. It will to add maps to your application. The API automatically handles access to our TPL Maps servers, data downloading, map display, and response to map gestures. You can do add markers, shapes, POIs show/hide point of interests, custom map styles and much more.
TPL Maps
Maintaining Mapping SDK is very complex, because it is often used for many different usecases (rendering tiles, icons, pois, and much more). we will prioritize updating and feature enhancement in future.
This project is compatible with iOS, Android This project is compatible with Android Minimum SDK 21.
Please follow the below steps:
1- npm install react-native-tpl-maps-view 2- Use the latest version of Package v0.0.5 in Package.json file 3- Add your TPL Maps Key in Android Manifest File like below
<meta-data android:name="com.tplmaps.android.sdk.API_KEY"
android:value="YOUR_API_KEY" />
4- Add MyPacakge() in your Android MainApplication Class ArrayList inside getPackages method
Import the MyViewManager2
component from react-native-tpl-maps-view
and use it like so to load Base Map:
import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { MyViewManager2 } from 'react-native-tpl-maps-view';
const createFragment = (viewId: any) =>
UIManager.dispatchViewManagerCommand(
viewId,
"1", [viewId],
);
const App = () => {
const ref = useRef(null);
useEffect(() => {
const viewId = findNodeHandle(ref.current);
createFragment(viewId);
}, []);
return (
<MyViewManager2 ref={ref} />
);
};
export default App;
Add Marker on Map with LatLng
import {AddMarker} from 'react-native-tpl-maps-view'
AddMarker("67.125973;24.820649")
Camera Zoom on Map with LatLng and Zoom Level
import {AddMarker} from 'react-native-tpl-maps-view'
SetCameraAnimation("67.125973;24.820649" , "15")
Register Callback to recevice LatLng on Marker Click and Camera Change Listner
import {AddMarker} from 'react-native-tpl-maps-view'
CameraCallback()
**You will receive LatLng updates within TplMapsController.tsx**
export function CameraCallback() {
MyModule.CameraCallback('Hello from React Native!')
.then((result: any) => {
console.warn(result)
console.log(result); // Log the promise result
})
.catch((error: any) => {
console.warn("Not working....")
console.error(error); // Handle any errors
});
}
Invariant Violation: Native component for "RNCWebView does not exist"
it likely means you forgot to run react-native link
or there was some error with the linking process:app:mergeDexRelease
, you need to enable multidex support in android/app/build.gradle
Please report your issues and bugs on daniyal.khan@tplmaps.com
MIT
FAQs
TPL Maps React Native Package
The npm package react-native-tpl-maps receives a total of 0 weekly downloads. As such, react-native-tpl-maps popularity was classified as not popular.
We found that react-native-tpl-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
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.