Hello World
This example demonstrates the simplest way to display a map in a React Native application.
Overview
This example shows:
- How to initialize the SDK in React Native
- How to create a map view using the
GLViewcomponent - Platform-specific initialization handling
- Basic map lifecycle management
Key Differences from Web
The React Native SDK shares 99% of the Maps SDK for TypeScript functionality. The only difference is how you create the map view:
- Web: Use
gemKit.createView()to create a DOM element - React Native: Use the
GLViewcomponent
All other APIs (search, routing, navigation, etc.) work identically.