ant-design / ant-design-mobile-rn

Ant Design for React Native
https://rn.mobile.ant.design/
MIT License
3.05k stars 611 forks source link

[Bug] 'RNCCameraRoll' could not be found. Verify that a module by this name is registered in the native binary. #1315

Closed Jelmerovereem closed 7 months ago

Jelmerovereem commented 11 months ago

💬 Before You Start

🙋 Description/Step to reproduce

I'm running expo 49.0.13 & react-native 0.72.5.

  1. Install with: npx expo install @ant-design/react-native
  2. Install peer dependencies: npx expo install @react-native-camera-roll/camera-roll @react-native-picker/picker @react-native-community/segmented-control @react-native-community/slider react-native-gesture-handler
  3. Run app: npm run start. (you have to have at least 1 antd element used in your app)
  4. Open expo app on android, then it throws the error: Screenshot from 2023-10-13 16 50 20@2x Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNCCameraRoll' could not be found. Verify that a module by this name is registered in the native binary., js engine: hermes

💻 Environment

Android, Expo

⚫️ Output of npx react-native info

System:
  OS: Linux 6.2 elementary OS 7.1 Horus 7.1 Horus
  CPU: (20) x64 13th Gen Intel(R) Core(TM) i9-13900H
  Memory: 17.22 GB / 31.13 GB
  Shell:
    version: 5.1.16
    path: /bin/bash
Binaries:
  Node:
    version: 18.18.0
    path: ~/.nvm/versions/node/v18.18.0/bin/node
  Yarn: Not Found
  npm:
    version: 9.8.1
    path: ~/.nvm/versions/node/v18.18.0/bin/npm
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
Languages:
  Java: Not Found
  Ruby:
    version: 3.0.2
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.5
    wanted: 0.72.5
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Additional comments

What I tried:

krutilins commented 10 months ago

same for me, but on ios platform:

System:
  OS: macOS 13.5
  CPU: (10) arm64 Apple M1 Pro
  Memory: 106.97 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.16.0
    path: ~/.nvm/versions/node/v18.16.0/bin/node
  Yarn:
    version: 3.4.1
    path: ~/.nvm/versions/node/v18.16.0/bin/yarn
  npm:
    version: 9.5.1
    path: ~/.nvm/versions/node/v18.16.0/bin/npm
  Watchman:
    version: 2023.11.13.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /Users/sergeykrutilin/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK: Not Found
IDEs:
  Android Studio: Flamingo 2022.2.1 Flamingo 2022.2.1
  Xcode:
    version: 15.0.1/15A507
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.6
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /Users/sergeykrutilin/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false
Lemonade1172 commented 10 months ago

same question, but expo 49.0.15 & react-native 0.72.6.

chenyu1990 commented 9 months ago

还没有解决吗?

yorickshan commented 9 months ago

same issue

chenyu1990 commented 9 months ago

expo install

Shan Yinlong @.***>于2023年12月28日 周四15:30写道:

same issue

— Reply to this email directly, view it on GitHub https://github.com/ant-design/ant-design-mobile-rn/issues/1315#issuecomment-1870898778, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTZ4OEZMJLFS3WM5QTNGFDYLUN2HAVCNFSM6AAAAAA57I2FL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZQHA4TQNZXHA . You are receiving this because you commented.Message ID: @.***>

1uokun commented 7 months ago

fixed in 5.1.0 by:

❗️Delete ImagePicker component and remove dependence @react-native-camera-roll/camera-roll