# react-native-acoustic-connect-beta

## Requirements

- React Native v0.76.9 or higher using new architecture
- Node 20.0.0 or higher
- Does not support expo

## Installation

```bash
// To add to your package
npm add react-native-acoustic-connect-beta react-native-nitro-modules
// To install on your application and view debug information during install
npm install --foreground-scripts --force

```
## Overview

[Go to overview](https://developer.goacoustic.com/acoustic-connect/docs/connect-sdk-overview)

---

## Getting started

**This module uses only enhanced replay.

[Connect Install Documentation](https://developer.goacoustic.com/acoustic-connect/docs/react-native-integration)

---
# Demo
## Sample Code with integrated
### Using NativeBase v3 KitchenSink
![demo](https://github.com/go-acoustic/react-native-acoustic-connect/blob/main/Example/nativebase-v3-kitchensink/assets/demo.png)

* NativeBase-KitchenSink taken from https://github.com/GeekyAnts/nativebase-v3-kitchensink which is at Example/nativebase-v3-kitchensink. 

[Installation instructions](https://developer.goacoustic.com/acoustic-connect/docs/build-a-sample-react-native-app)
---

# Notes
There are several know issues between npm install versus yarn install. Since yarn is a Facebook tool. It normally has fixes patched for installing dependancies.

## Troubleshooting

### Issues installing
```
npm add react-native-nitro-modules         
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @expo/webpack-config@19.0.1
npm ERR! Found: expo@52.0.46
npm ERR! node_modules/expo
npm ERR!   peer expo@"*" from expo-font@13.0.4
npm ERR!   node_modules/expo-font
npm ERR!     expo-font@"~13.0.4" from expo@52.0.46
npm ERR!     peer expo-font@"*" from @expo/vector-icons@14.1.0
npm ERR!     node_modules/@expo/vector-icons
npm ERR!       @expo/vector-icons@"^14.0.0" from expo@52.0.46
npm ERR!       1 more (the root project)
npm ERR!     1 more (the root project)
npm ERR!   peer expo@"*" from expo-file-system@18.0.12
npm ERR!   node_modules/expo-file-system
npm ERR!     expo-file-system@"~18.0.12" from expo@52.0.46
npm ERR!   6 more (expo-asset, expo-pwa, expo-keep-awake, expo-constants, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer expo@"^49.0.7 || ^50.0.0-0" from @expo/webpack-config@19.0.1
npm ERR! node_modules/@expo/webpack-config
npm ERR!   @expo/webpack-config@"^19.0.1" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: expo@50.0.21
npm ERR! node_modules/expo
npm ERR!   peer expo@"^49.0.7 || ^50.0.0-0" from @expo/webpack-config@19.0.1
npm ERR!   node_modules/@expo/webpack-config
npm ERR!     @expo/webpack-config@"^19.0.1" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! .npm/_logs/2025-05-24T00_43_01_748Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: .npm/_logs/2025-05-24T00_43_01_748Z-debug-0.log
```

fix issue or you use the following to solve depencencies issues
```
npm install react-native-nitro-modules --legacy-peer-deps
```
