react-native-image-editor icon indicating copy to clipboard operation
react-native-image-editor copied to clipboard

Yellow box: "Warning: Calling bridge.imageLoader is deprecated and will not work in newer versions of RN. Please update to themoduleForClass API or turboModuleLookupDelegate API."

Open dkoo opened this issue 4 years ago • 5 comments

Bug

This Yellow Box warning appears whenever using the cropImage method of this library. Maybe due to the use of _bridge.imageLoader here.

Simulator Screen Shot - iPhone 11 - 2020-01-30 at 12 53 06

Environment info

React Native info output:

System:
    OS: macOS Mojave 10.14.5
    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
    Memory: 19.75 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.11.0 - ~/.nvm/versions/node/v12.11.0/bin/node
    npm: 6.11.3 - ~/.nvm/versions/node/v12.11.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
    Android SDK:
      API Levels: 28, 29
      Build Tools: 28.0.3, 29.0.2
      System Images: android-29 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5977832
    Xcode: 11.0/11A420a - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0
    react-native: 0.61.5 => 0.61.5
  npmGlobalPackages:
    react-native-rename: 2.4.1

Library version: ^2.2.0

Steps To Reproduce

  1. Call cropImage with debug mode enabled.
  2. The image is correctly cropped, but the Yellow Box warning appears when the response is returned.

dkoo avatar Jan 30 '20 19:01 dkoo

Same issue

MamyChow avatar Feb 08 '20 14:02 MamyChow

Same here.

benzman81 avatar Feb 09 '20 11:02 benzman81

The solution is to replace _bridge.imageLoader with [_bridge moduleForName:@"ImageLoader" lazilyLoadIfNecessary:YES] in here, It should be fixed in the next release.

sokoldjala avatar Feb 13 '20 15:02 sokoldjala

@sokoldjala Would you like to submit a PR fixing this issue?

Trancever avatar Mar 19 '20 11:03 Trancever

@dkoo this ticket is completed, isn't it?

Psiiirus avatar Apr 02 '20 09:04 Psiiirus

Right, it was fixed and released in 2.3.0

retyui avatar Feb 25 '24 13:02 retyui