React Native - Getting started
Code sample for react-native
https://github.com/wemap/react-native-wemap-livemap/blob/master/example/src/App.js
Wemap react-native SDK
The Wemap react-native SDK is a library that will handle communication with the Wemap application.
The SDK offers an interface to manage the Livemap Mapview and to subscribe to events that happen on the map.
Please get your emmid
and token
from your pro account. You may ask for one if necessary or you can test with our developers credentials if you lack time.
Installation
npm install @wemap/react-native-wemap-livemap
Documentation
To view all methods and props of the Livemap Component, please see the documentation
Example
import React from 'react';
import {SafeAreaView, StatusBar, View} from 'react-native';
import Livemap from '@wemap/react-native-wemap-livemap';
const App = () => {
return (
<SafeAreaView style={{flex: 1}}>
<StatusBar />
<View style={{flex: 1}}>
<Livemap
mapConfig={{
emmid: 19158,
token: 'GUHTU6TYAWWQHUSR5Z5JZNMXX',
}}
/>
</View>
</SafeAreaView>
);
};
export default App;