---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://ads.yandex.com/helpcenter/en/dev/react-native7/react-native-errors.md
  - https://ads.yandex.com/helpcenter/ru/dev/react-native7/react-native-errors.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ads.yandex.com/helpcenter/ru/llms.txt

<!--
Используется в Boost: boost/ru/ad-monetization/dev/react-native
-->

# Возможные ошибки

## Ошибки при интеграции плагина {#integration}

Во время интеграции ReactNative плагина возможна ошибка сборки Android приложения:

```java translate=no
/Users/AAAXXX/AX/reactapps/node_modules/react-native-camera/android/ build/intermediates/packaged_res/mlkitDebug/
values/values.xml:9:4: Duplicate value for resource 'attr/aspectRatio' with config 'DEFAULT' and product ''. 
Resource was previously defined here: com.aaaxxxgroupreactapps.app- mergeCentrepointDebugResources-84:/values/values.xml:10269: .
```

Чтобы исправить ошибку:

1. Добавьте зависимость [patch-package](https://www.npmjs.com/package/patch-package) и добавьте ее вызов как postinstall скрипт в package.json.

2. Создайте папку **patches** в корне проекта и добавьте туда [файл](https://doc-static.yandex.net/support/RSYA-RMP/react-native-camera_4.2.1.patch).
