Skip to main content

Search

Location: src/screens/SearchScreen.tsx

Integrates the SSMap.search() API to find locations and animates the camera to the selected result.


Search by keyword​

// Fetch search results
const result = await SSMap.search("Delhi");
setResults(result.docs || []);

// Animate camera to selection
cameraRef.current?.flyTo({
center: [lng, lat],
zoom: 14,
duration: 1000,
});

See also: React Native Map SDK overview.