Open emmadal opened 2 months ago
This error has been discussed in this issue
The PR is currently merged, but I don't know if there is a released version with the fix.
ok thanks @javigutierrezfer
in the new release v51.0.18
the console.warning has been fixed
I am on version v51.0.21
and am seeing this, has there been a regression?
Can report the same issue on v51.0.22
Can report the same issue on v51.0.22
@whiletruefranz There are a regression I think, because on the v51.0 18, this bugs was fixed. In the next version version the same issue appears again.
Still having the issue with expo: 51.0.23 expo-image: 1.12.13 jest-expo: 51.0.3
Still having the issue with expo: 51.0.23 expo-image: 1.12.13 jest-expo: 51.0.3
use the expo SDK v51.0 18 maybe in next version they will fix it
Still having the issue with expo: 51.0.23 expo-image: 1.12.13 jest-expo: 51.0.3
use the expo SDK v51.0 18 maybe in next version they will fix it
Still the same error with expo: 51.0.18, expo-image: 1.12.13, jest-expo: 51.0.3:
Warning: Unexpected ref object provided for ExpoImage. Use either a ref-setter function or React.createRef().
at NativeComponent (node_modules/expo-modules-core/src/NativeViewManagerAdapter.native.tsx:79:25)
at ExpoImage (node_modules/expo-image/src/ExpoImage.tsx:30:17)
Still having the issue with expo: 51.0.23 expo-image: 1.12.13 jest-expo: 51.0.3
use the expo SDK v51.0 18 maybe in next version they will fix it
Still the same error with expo: 51.0.18, expo-image: 1.12.13, jest-expo: 51.0.3:
Warning: Unexpected ref object provided for ExpoImage. Use either a ref-setter function or React.createRef(). at NativeComponent (node_modules/expo-modules-core/src/NativeViewManagerAdapter.native.tsx:79:25) at ExpoImage (node_modules/expo-image/src/ExpoImage.tsx:30:17)
try "expo-image": "~1.12.12",
i have downgraded to this version then the issues has been fixed
Still having the issue with expo: 51.0.23 expo-image: 1.12.13 jest-expo: 51.0.3
use the expo SDK v51.0 18 maybe in next version they will fix it
Still the same error with expo: 51.0.18, expo-image: 1.12.13, jest-expo: 51.0.3:
Warning: Unexpected ref object provided for ExpoImage. Use either a ref-setter function or React.createRef(). at NativeComponent (node_modules/expo-modules-core/src/NativeViewManagerAdapter.native.tsx:79:25) at ExpoImage (node_modules/expo-image/src/ExpoImage.tsx:30:17)
try
"expo-image": "~1.12.12",
i have downgraded to this version then the issues has been fixed
The same thing happens with expo: 51.0.18, expo-image: 1.12.12, jest-expo: 51.0.3
Any update on when this will be fixed?
same here!
I don't have this issue anymore with these versions:
expo: 51.0.31
expo-image: 1.12.15
jest-expo: 51.0.3
I have the same issue. I've even added
jest.mock('expo-image', () => {
const actualExpoImage = jest.requireActual('expo-image');
const { Image } = jest.requireActual('react-native');
return { ...actualExpoImage, Image };
});
to my jest.setup.ts
expo: 51.0.31 expo-image: 1.12.15 jest-expo: 51.0.3
Minimal reproducible example
https://github.com/emmadal/fox/blob/main/components/__tests__/Logo.test.tsx
What platform(s) does this occur on?
No response
Did you reproduce this issue in a development build?
Yes
Summary
Hello, i have some issues with expo-image when i want to write unit test. first i have create a component which render a image with expo-image component, then my component render correctly. the issue is on the unit test, after writting the unit test i get in the console that all my tests are passed but i get this following console error from expo-image:
this is the content of my logo.test.tsx file:
finaly this is my the content of my logo.tsx component
Environment
Expo Doctor Diagnostics