npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@javascript_variable/react-native-yandex-mapkit

v0.2.0

Published

Yandex MapKit for React Native with New Architecture (Fabric + TurboModules)

Readme

react-native-yandex-mapkit

Нативная обёртка над Yandex MapKit для React Native 0.76+ с поддержкой New Architecture (Fabric + TurboModules).

Замена устаревшему react-native-yamap без legacy interop и patch-package.

Возможности

  • YaMap — карта (Fabric)
  • Marker / Polygon — декларативные дочерние элементы
  • Geocoder — HTTP Geocoder API (как в react-native-yamap)
  • Suggest — нативные подсказки через MapKit Search
  • Команды ref: setCenter, fitAllMarkers
  • События: onMapPress, onMarkerPress, onCameraPositionChange, onCameraPositionChangeEnd

Требования

  • React Native >= 0.76 (протестировано на 0.83)
  • New Architecture включена (newArchEnabled=true)
  • iOS 15.5+
  • Android minSdk 26+
  • Yandex MapKit 4.19.0-full

Установка

yarn add react-native-yandex-mapkit
# или из git:
# yarn add git+https://github.com/your-org/react-native-yandex-mapkit.git
# или локально:
# yarn add file:../react-native-yandex-mapkit

iOS

В Podfile уже должен быть YandexMapsMobile (подтянется через podspec):

cd ios && pod install

Android

Autolinking подхватит пакет автоматически. MapKit подтягивается из build.gradle библиотеки.

Инициализация

import YaMap, { Geocoder } from 'react-native-yandex-mapkit';

await YaMap.init('YOUR_MAPKIT_API_KEY');
Geocoder.init('YOUR_GEOCODER_API_KEY');

Пример

import YaMap, { Marker, Polygon, Animation } from 'react-native-yandex-mapkit';

const mapRef = useRef(null);

<YaMap
  ref={mapRef}
  style={{ flex: 1 }}
  initialRegion={{ lat: 53.9, lon: 27.56, zoom: 11 }}
  showUserPosition
  onMapPress={(e) => console.log(e.nativeEvent)}
>
  <Marker
    point={{ lat: 53.9, lon: 27.56 }}
    source={require('./marker.png')}
    onPress={() => {}}
  />
  <Polygon
    points={[{ lat: 53.91, lon: 27.55 }, /* ... */]}
    strokeColor="#FF8732"
    fillColor="rgba(255, 135, 50, 0.2)"
  />
</YaMap>

mapRef.current?.setCenter({ lat: 53.9, lon: 27.56 }, 14, 0, 0, 0.4, Animation.SMOOTH);

Миграция с react-native-yamap

  1. Замените зависимость и импорты:
- import YaMap, { Marker, Geocoder } from 'react-native-yamap';
+ import YaMap, { Marker, Geocoder } from 'react-native-yandex-mapkit';
  1. Удалите patch-package патчи для yamap и legacy interop в AppDelegate (RCTLegacyViewManagerInterop...).

  2. Пересоберите нативные проекты.

API совместим с основными сценариями BK: рестораны, адрес, зоны доставки.

Лицензия

MIT