react-native-image-editor
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."
Bug
This Yellow Box warning appears whenever using the cropImage
method of this library. Maybe due to the use of _bridge.imageLoader
here.
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
- Call
cropImage
with debug mode enabled. - The image is correctly cropped, but the Yellow Box warning appears when the response is returned.
Same issue
Same here.
The solution is to replace _bridge.imageLoader
with [_bridge moduleForName:@"ImageLoader" lazilyLoadIfNecessary:YES]
in here,
It should be fixed in the next release.
@sokoldjala Would you like to submit a PR fixing this issue?
@dkoo this ticket is completed, isn't it?
Right, it was fixed and released in 2.3.0