doublesymmetry / react-native-track-player

A fully fledged audio module created for music apps. Provides audio playback, external media controls, background mode and more!
https://rntp.dev/
Apache License 2.0
3.29k stars 1.01k forks source link

Crash with RN 76. New architecture support #2389

Open masarbazi opened 1 day ago

masarbazi commented 1 day ago

Describe the Bug App crashes with RN76 where new arch is enabled by default. image

Steps To Reproduce Create new RN app and there we go...

Code To Reproduce Just import TrackPlayer from 'react-native-track-player'; will cause the error

Environment Info:

Track player version:
  "react-native-track-player": "^4.1.1"
System:
  OS: Windows 11 10.0.22631
  CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-12650H
  Memory: 14.01 GB / 31.73 GB
npm:
    version: 10.2.4
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    Android NDK: 23.1.7779620
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-223.8836.35.2231.10406996
  Visual Studio: Not Found
Languages:
  Java:
    version: 17.0.12
    path: /c/Program Files/Common Files/Oracle/Java/javapath/javac
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.0
    wanted: 15.0.0
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.1
    wanted: 0.76.1
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found
danishhusain commented 23 hours ago

WhatsApp Image 2024-11-04 at 16 49 39

I am also facing issue in New architecture. Team please fix the issue and its very important for us.

@egorkhmelev @qmx @skahack

danishhusain commented 23 hours ago

Describe the Bug App crashes with RN76 where new arch is enabled by default. image

Steps To Reproduce Create new RN app and there we go...

Code To Reproduce Just import TrackPlayer from 'react-native-track-player'; will cause the error

Environment Info:

Track player version:
  "react-native-track-player": "^4.1.1"
System:
  OS: Windows 11 10.0.22631
  CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-12650H
  Memory: 14.01 GB / 31.73 GB
npm:
    version: 10.2.4
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    Android NDK: 23.1.7779620
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-223.8836.35.2231.10406996
  Visual Studio: Not Found
Languages:
  Java:
    version: 17.0.12
    path: /c/Program Files/Common Files/Oracle/Java/javapath/javac
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.0
    wanted: 15.0.0
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.1
    wanted: 0.76.1
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

If you found any solution please ping me.

pigeonmal commented 22 hours ago

look at https://github.com/doublesymmetry/react-native-track-player/pull/2370