You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you reproduce this issue in a development build?
Yes
Summary
expo-image is spitting console.error during tests with jest after upgrading to Expo 51. Although tests pass, it's kinda annoying with all the red texts 🥲
yarn run v1.22.22
$ jest
console.error
Warning: Unexpected ref object provided for ExpoImage. Use either a ref-setter functionorReact.createRef().
at NativeComponent (/Users/lodev09/Projects/github/expaw/node_modules/expo-modules-core/src/NativeViewManagerAdapter.native.tsx:79:25)
at ExpoImage (/Users/lodev09/Projects/github/expaw/node_modules/expo-image/src/ExpoImage.tsx:30:17)
at Image (/Users/lodev09/Projects/github/expaw/node_modules/expo-image/src/Image.tsx:15:20)
at style (/Users/lodev09/Projects/github/expaw/src/components/PreviewImage.tsx:5:11)
6 |describe('PreviewImage', () => {
7 | it('should render', () => {
> 8 | render(<PreviewImage source={{ uri: 'somefile.jpg' }} />)
| ^
9 | expect(screen.queryByRole('image'))
10 | })
11 | })
...
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for issues with metro config
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check native tooling versions
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check that native modules use compatible support package versions for installed Expo SDK
Didn't find any issues with the project!
The text was updated successfully, but these errors were encountered:
Minimal reproducible example
https://github.com/lodev09/expaw
What platform(s) does this occur on?
Jest
Did you reproduce this issue in a development build?
Yes
Summary
expo-image
is spittingconsole.error
during tests with jest after upgrading to Expo 51. Although tests pass, it's kinda annoying with all the red texts 🥲To reproduce, checkout this repo
Environment
Expo Doctor Diagnostics
The text was updated successfully, but these errors were encountered: