facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.82k stars 24.29k forks source link

[0.76] Error while updating property 'source' of a view managed by: RCTImageView #47185

Open 1280103995 opened 2 hours ago

1280103995 commented 2 hours ago

Description

Today, I saw that RN 0.76 was released, and then I created a new RN project. After running the App, an error was reported.

Steps to reproduce

  1. run npx react-native init RN076
  2. Need to install the following packages: react-native@0.76.0 Ok to proceed? (y) y
  3. Need to install the following packages: @react-native-community/cli@14.1.1 Ok to proceed? (y) y
  4. Do you want to install CocoaPods now? Only needed if you run your project in Xcode directly … yes
  5. cd "/Users/***/Desktop/RN076" && npx react-native run-android

Later, some Android 15 development dependencies will be downloaded.

React Native Version

0.76.0

Affected Platforms

Runtime - Android/iOS

Output of npx react-native info

System:
  OS: macOS 14.4.1
  CPU: (8) arm64 Apple M1 Pro
  Memory: 79.00 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 21.6.2
    path: /opt/homebrew/bin/node
  Yarn:
    version: 3.6.4
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.2.4
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2024.01.22.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /Users/***/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK: Not Found
IDEs:
  Android Studio: 2023.1 AI-231.9392.1.2311.11255304
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.9
    path: /Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home/bin/javac
  Ruby:
    version: 2.7.6
    path: /Users/***/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.0-alpha.2
    wanted: 15.0.0-alpha.2
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.0
    wanted: 0.76.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: false

### Stacktrace or Logs

```text
Error while updating property 'source' of a view managed by: RCTImageView

java.lang.Double cannot be case to com.facebook.react.bridge.ReadableArray

Reproducer

No. I just created a new app normally.

Screenshots and Videos

211fdb2-c5e6-4962-ae2b-6f39819891e0 b020ce-d988-4359-b67a-d920aab1def6
react-native-bot commented 2 hours ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
react-native-bot commented 2 hours ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
1280103995 commented 1 hour ago

I installed the following dependent libraries in sequence according to the error message:

  1. react-native-gesture-handler
  2. react-native-device-info
  3. @react-native-community/netinfo

But it still reported an error:

39bc-5ca9-4d10-be8e-5d8387a133ef
migueldaipre commented 1 hour ago

From the error message you are trying to use the react-native-gesture-handler library.

If not, please add a reproducer so we can investigate further.