Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ The [example app](/example/) demonstrates usage of the library. You need to run

It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app.

If you want to use Android Studio or XCode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/YamapLiteExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > @atc/react-native-yamap-lite`.
If you want to use Android Studio or XCode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/YamapLiteExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > @exterio/react-native-yamap-lite`.

To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `@atc/react-native-yamap-lite` under `Android`.
To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `@exterio/react-native-yamap-lite` under `Android`.

You can use various commands from the root directory to work with the project.

Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<div align="center">

<img src="./images/banner.png" alt="@atc/react-native-yamap-lite" width="420" />
<img src="./images/banner.png" alt="@exterio/react-native-yamap-lite" width="420" />

# @atc/react-native-yamap-lite
# @exterio/react-native-yamap-lite

**Легковесная библиотека для интеграции Yandex Maps (Яндекс Карт) в React Native.**

Yandex Maps · React Native · Fabric

[![npm](https://img.shields.io/npm/v/@atc/react-native-yamap-lite.svg)](https://www.npmjs.com/package/@atc/react-native-yamap-lite)
[![npm](https://img.shields.io/npm/v/@exterio/react-native-yamap-lite.svg)](https://www.npmjs.com/package/@exterio/react-native-yamap-lite)
[![platforms](https://img.shields.io/badge/platforms-iOS%20%7C%20Android-blue.svg)](#требования)
[![New Architecture](https://img.shields.io/badge/New%20Architecture-Fabric-success.svg)](#требования)
[![tests](https://img.shields.io/badge/tests-Jest%20%2B%20Harness-brightgreen.svg)](#тесты)
[![license](https://img.shields.io/npm/l/@atc/react-native-yamap-lite.svg)](./LICENSE)
[![license](https://img.shields.io/npm/l/@exterio/react-native-yamap-lite.svg)](./LICENSE)

</div>

Expand Down Expand Up @@ -47,13 +47,13 @@ Lite-обёртка над [Yandex MapKit SDK](https://yandex.ru/dev/maps/mapkit
## Установка

```sh
yarn add @atc/react-native-yamap-lite
yarn add @exterio/react-native-yamap-lite
```

или

```sh
npm install @atc/react-native-yamap-lite --save
npm install @exterio/react-native-yamap-lite --save
```

### iOS
Expand All @@ -75,7 +75,7 @@ cd ios && pod install && cd ..
```js
// index.js
import { AppRegistry } from 'react-native';
import { YamapUtils } from '@atc/react-native-yamap-lite';
import { YamapUtils } from '@exterio/react-native-yamap-lite';
import App from './App';
import { name as appName } from './app.json';

Expand All @@ -102,7 +102,7 @@ AppRegistry.registerComponent(appName, () => App);

```jsx
import React from 'react';
import { YaMap, Marker, Circle } from '@atc/react-native-yamap-lite';
import { YaMap, Marker, Circle } from '@exterio/react-native-yamap-lite';

const Map = () => {
return (
Expand Down Expand Up @@ -250,7 +250,7 @@ interface YaMapRef {

```jsx
import React, { useRef } from 'react';
import { YaMap } from '@atc/react-native-yamap-lite';
import { YaMap } from '@exterio/react-native-yamap-lite';

const Map = () => {
const mapRef = useRef(null);
Expand Down Expand Up @@ -352,7 +352,7 @@ const Map = () => {
Компонент для отображения кластеризованных маркеров:

```jsx
import { ClusteredYamap, Marker } from '@atc/react-native-yamap-lite';
import { ClusteredYamap, Marker } from '@exterio/react-native-yamap-lite';

<ClusteredYamap
clusterColor="#ff00ff"
Expand Down
2 changes: 1 addition & 1 deletion example/harness/ensureMapKitInit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { YamapUtils } from '@atc/react-native-yamap-lite';
import { YamapUtils } from '@exterio/react-native-yamap-lite';
import { YAMAP_API_KEY } from './constants';

/** @type {Promise<void> | null} */
Expand Down
2 changes: 1 addition & 1 deletion example/harness/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
type InitialRegion,
type YaMapProps,
type YaMapRef,
} from '@atc/react-native-yamap-lite';
} from '@exterio/react-native-yamap-lite';
import { INITIAL_REGION, MAP_LOAD_TIMEOUT } from './constants';
import { ensureMapKitInitialized } from './ensureMapKitInit';

Expand Down
2 changes: 1 addition & 1 deletion example/harness/tests/Circle.harness.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, test, expect } from 'react-native-harness';
import { Circle } from '@atc/react-native-yamap-lite';
import { Circle } from '@exterio/react-native-yamap-lite';
import { MOSCOW } from '../constants';
import { renderMapWithOverlays, renderUpdatingOverlays } from '../helpers';

Expand Down
2 changes: 1 addition & 1 deletion example/harness/tests/ClusteredYamap.harness.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
Marker,
type ClusteredYamapProps,
type YaMapRef,
} from '@atc/react-native-yamap-lite';
} from '@exterio/react-native-yamap-lite';
import { CAMERA_ANIMATION_TIMEOUT, INITIAL_REGION, MOSCOW } from '../constants';
import { ensureMapKitInitialized } from '../ensureMapKitInit';
import { waitForMapReady, expectNear } from '../helpers';
Expand Down
2 changes: 1 addition & 1 deletion example/harness/tests/MapEvents.harness.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
type YaMapRef,
type CameraPosition,
type MapLoaded,
} from '@atc/react-native-yamap-lite';
} from '@exterio/react-native-yamap-lite';
import {
INITIAL_REGION,
MOSCOW,
Expand Down
2 changes: 1 addition & 1 deletion example/harness/tests/Marker.harness.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
YaMap,
type MarkerRef,
type YaMapRef,
} from '@atc/react-native-yamap-lite';
} from '@exterio/react-native-yamap-lite';
import { StyleSheet, View } from 'react-native';
import { INITIAL_REGION, MOSCOW } from '../constants';
import { ensureMapKitInitialized } from '../ensureMapKitInit';
Expand Down
2 changes: 1 addition & 1 deletion example/harness/tests/Polygon.harness.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, test, expect } from 'react-native-harness';
import { Polygon } from '@atc/react-native-yamap-lite';
import { Polygon } from '@exterio/react-native-yamap-lite';
import { MOSCOW } from '../constants';
import { renderMapWithOverlays, renderUpdatingOverlays } from '../helpers';

Expand Down
2 changes: 1 addition & 1 deletion example/harness/tests/Polyline.harness.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, test, expect } from 'react-native-harness';
import { Polyline } from '@atc/react-native-yamap-lite';
import { Polyline } from '@exterio/react-native-yamap-lite';
import { MOSCOW } from '../constants';
import { renderMapWithOverlays, renderUpdatingOverlays } from '../helpers';

Expand Down
2 changes: 1 addition & 1 deletion example/harness/tests/Regression.harness.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
YaMap,
YamapUtils,
type YaMapRef,
} from '@atc/react-native-yamap-lite';
} from '@exterio/react-native-yamap-lite';
import {
CAMERA_ANIMATION_TIMEOUT,
INITIAL_REGION,
Expand Down Expand Up @@ -326,7 +326,7 @@
expect(typeof locale).toBe('string');

// Suppress unused variable lint — we only care that no hard crash occurred
void threw;

Check warning on line 329 in example/harness/tests/Regression.harness.tsx

View workflow job for this annotation

GitHub Actions / lint

Expected 'undefined' and instead saw 'void'
});
});

Expand Down
2 changes: 1 addition & 1 deletion example/harness/tests/UI.harness.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
Marker,
YaMap,
type YaMapRef,
} from '@atc/react-native-yamap-lite';
} from '@exterio/react-native-yamap-lite';
import { INITIAL_REGION, MOSCOW } from '../constants';
import { ensureMapKitInitialized } from '../ensureMapKitInit';
import { waitForMapReady, expectNear } from '../helpers';
Expand Down
2 changes: 1 addition & 1 deletion example/harness/tests/YaMap.harness.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from 'react-native-harness';
import { useEffect, useState } from 'react';
import { StyleSheet, View } from 'react-native';
import { YaMap, type YaMapRef } from '@atc/react-native-yamap-lite';
import { YaMap, type YaMapRef } from '@exterio/react-native-yamap-lite';
import { CAMERA_ANIMATION_TIMEOUT, INITIAL_REGION, MOSCOW } from '../constants';
import { ensureMapKitInitialized } from '../ensureMapKitInit';
import { expectNear, renderMap, waitForMapReady } from '../helpers';
Expand Down
2 changes: 1 addition & 1 deletion example/harness/tests/YamapUtils.harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
afterEach,
} from 'react-native-harness';
import { Platform } from 'react-native';
import { YamapUtils } from '@atc/react-native-yamap-lite';
import { YamapUtils } from '@exterio/react-native-yamap-lite';
import { YAMAP_API_KEY } from '../constants';

describe('YamapUtils', () => {
Expand Down
6 changes: 3 additions & 3 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ PODS:
- React-perflogger (= 0.79.2)
- React-utils (= 0.79.2)
- SocketRocket (0.7.1)
- YamapLite (1.0.1):
- YamapLite (1.0.0):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -2004,10 +2004,10 @@ SPEC CHECKSUMS:
React-timing: a90f4654cbda9c628614f9bee68967f1768bd6a5
React-utils: a612d50555b6f0f90c74b7d79954019ad47f5de6
ReactAppDependencyProvider: 04d5eb15eb46be6720e17a4a7fa92940a776e584
ReactCodegen: c63eda03ba1d94353fb97b031fc84f75a0d125ba
ReactCodegen: a204c3379029e4116b1eda5c1d3a17926db49003
ReactCommon: 76d2dc87136d0a667678668b86f0fca0c16fdeb0
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
YamapLite: adfe00cc2559f6534024c124b76465fa7de5db51
YamapLite: 69b4961e1f7ebf84556009927fb93bad039ce77f
YandexMapsMobile: e6443bf72724581ec9f884abdbae254273bc2912
Yoga: c758bfb934100bb4bf9cbaccb52557cee35e8bdf

Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test:harness:android": "NODE_OPTIONS='--experimental-require-module' react-native-harness --harnessRunner android"
},
"dependencies": {
"@atc/react-native-yamap-lite": "link:..",
"@exterio/react-native-yamap-lite": "link:..",
"react": "19.0.0",
"react-native": "0.79.2"
},
Expand Down
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Circle,
Polygon,
Polyline,
} from '@atc/react-native-yamap-lite';
} from '@exterio/react-native-yamap-lite';
import { ensureMapKitInitialized } from '../harness/ensureMapKitInit';
import { markers } from './constants/markers';
import {
Expand Down
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "@atc/react-native-yamap-lite",
"name": "@exterio/react-native-yamap-lite",
"version": "1.0.0",
"description": "A lightweight wrapper for the Yandex MapKit SDK",
"main": "./src/index.tsx",
"types": "./src/index.tsx",
"main": "./lib/module/index.js",
"module": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
"exports": {
".": {
"source": "./src/index.tsx",
"types": "./src/index.tsx",
"default": "./src/index.tsx"
"types": "./lib/typescript/src/index.d.ts",
"default": "./lib/module/index.js"
},
"./package.json": "./package.json"
},
Expand Down Expand Up @@ -42,6 +43,7 @@
"typecheck": "tsc",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
"prepack": "bob build",
"codegenIos": "yarn react-native codegen --path example/ --outputPath ./",
"codegenAndroid": "yarn react-native codegen --path example/ --outputPath ./",
"release": "release-it --only-version"
Expand All @@ -59,17 +61,17 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/hydromoll/react-native-yamap-lite.git"
"url": "git+https://github.com/All-time-coding/react-native-yamap-lite.git"
},
"author": "hydromoll <hydromoll@mail.ru> (https://github.com/hydromoll)",
"contributors": [
"pe1ros <ilya.ezy@gmail.com> (https://github.com/pe1ros)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/hydromoll/react-native-yamap-lite/issues"
"url": "https://github.com/All-time-coding/react-native-yamap-lite/issues"
},
"homepage": "https://github.com/hydromoll/react-native-yamap-lite#readme",
"homepage": "https://github.com/All-time-coding/react-native-yamap-lite#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/YamapUtils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Platform, NativeModules } from 'react-native';

const LINKING_ERROR =
`The package '@atc/react-native-yamap-lite' doesn't seem to be linked. Make sure: \n\n` +
`The package '@exterio/react-native-yamap-lite' doesn't seem to be linked. Make sure: \n\n` +
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
'- You rebuilt the app after installing the package\n' +
'- You are not using Expo managed workflow\n';
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"rootDir": ".",
"paths": {
"@atc/react-native-yamap-lite": ["./src/index"]
"@exterio/react-native-yamap-lite": ["./src/index"]
},
"allowUnreachableCode": false,
"allowUnusedLabels": false,
Expand Down
Loading
Loading