react-native-palette
react-native-palette copied to clipboard
Bitmap is not valid
Thrown by the react native packager.
<init>
Palette.java:616
from
Palette.java:100
getAllSwatches
RNPaletteModule.java:83
invoke
Method.java
invoke
JavaMethodWrapper.java:363
invoke
JavaModuleWrapper.java:162
run
NativeRunnable.java
handleCallback
Handler.java:836
dispatchMessage
Handler.java:103
dispatchMessage
MessageQueueThreadHandler.java:31
loop
Looper.java:203
run
MessageQueueThreadHandler.java:194
run
Thread.java:761
OS: Android 7.0 Nougat
Hi, could you please provide more information about where you're seeing this? I tried running the example in this repo on a simulator running Android 7.0 and I don't see any errors. Are you sure you passing the correct type of image to the component? Can you modify the example to reproduce the error?
This happens to me if I use react-native-image-crop-picker
instead of react-native-image-picker
. Could you please say more about the required image type? react-native-image-crop-picker
returns urls in the form file:///data/user/0/com.aperture/cache/react-native-image-crop-picker/42bd7e0c-ef6d-4f84-aae2-4f931a6ec86d.jpg
Nevermind, I solved the issue by removing the file:///
from the image URL.
Great! Glad you solved it, and thanks for the follow up report.
On Oct 6, 2017, 00:48 -0600, Wassim Gharbi [email protected], wrote:
Nevermind, I solved the issue by removing the file:/// from the image URL. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
I got same error when trying to load image from online, how can this be solved?
试图从网上加载图像时出现同样的错误,这怎么解决?
试图从网上加载图像时出现同样的错误,这怎么解决?
@chetstone this shouldn't crash the app, it should just error. This should be reopened. I will create PR to catch this and return an error soon.
Error still persist anyone solved this? i also tried removing file:/// but error still persist