Files
Mapsdk/example/App.tsx
mansi-dev 8710bc7a7f Add initial implementation of Map SDK and example app
- Create README for the main repository and example app
- Implement example app with MapView and Marker components
- Add package.json for example app with necessary scripts and dependencies
- Create Map SDK package with TypeScript wrapper around react-native-maps
- Define TypeScript configuration for the SDK
2026-01-29 22:48:20 +05:30

22 lines
655 B
TypeScript

import React from 'react';
import { SafeAreaView, StyleSheet } from 'react-native';
import { MapView, Marker } from '@lynkedup/map-sdk';
export default function App() {
return (
<SafeAreaView style={styles.container}>
<MapView
style={styles.map}
initialRegion={{ latitude: 37.78825, longitude: -122.4324, latitudeDelta: 0.0922, longitudeDelta: 0.0421 }}
>
<Marker coordinate={{ latitude: 37.78825, longitude: -122.4324 }} />
</MapView>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: { flex: 1 },
map: { flex: 1 }
});