Closed sejori closed 1 year ago
you’ll need to install a new dev client for expo-image to work i assume. sounds like it’s not installed properly.
install a new dev-client, you mean make a new dev build on EAS and run that in simulator?
I think I have tried that for both react-fast-image and default expo-image but can try again.
@nandorojo so weirdly there was no expo-image
installed. Maybe I had accidentally uninstalled. After reinstalling into apps/expo/package.json
the error is gone. We are now facing another issue, please tell me if you would prefer to close this issue and open another one.
The new error is:
Error: Cannot find native module 'ExponentImagePicker', js engine: hermes at RootRouteNodeProvider (http://192.168.0.182:8081/index.bundle?platform=ios&dev=true&hot=false:110294:23) at ContextNavigator (http://192.168.0.182:8081/index.bundle?platform=ios&dev=true&hot=false:114681:24) at RNCSafeAreaProvider at SafeAreaProvider (http://192.168.0.182:8081/index.bundle?platform=ios&dev=true&hot=false:103003:24) at RCTView at View (http://192.168.0.182:8081/index.bundle?platform=ios&dev=true&hot=false:48499:43) at GestureHandlerRootView at GestureHandler at ExpoRoot (http://192.168.0.182:8081/index.bundle?platform=ios&dev=true&hot=false:114668:24) at App at withDevTools(App) (http://192.168.0.182:8081/index.bundle?platform=ios&dev=true&hot=false:143491:27) at ErrorToastContainer (http://192.168.0.182:8081/index.bundle?platform=ios&dev=true&hot=false:143415:24) at ErrorOverlay at RCTView at View (http://192.168.0.182:8081/index.bundle?platform=ios&dev=true&hot=false:48499:43) at RCTView at View (http://192.168.0.182:8081/index.bundle?platform=ios&dev=true&hot=false:48499:43) at AppContainer (http://192.168.0.182:8081/index.bundle?platform=ios&dev=true&hot=false:48376:36) at main(RootComponent) (http://192.168.0.182:8081/index.bundle?platform=ios&dev=true&hot=false:84581:28)
same issue but with expo-image-picker
Ahah you're right! So basically the idea is that all packages required by expo app must be present in the apps/expo/package.json
and the root package.json
?
native deps go in the expo folder
Brill - thanks for that and great work on the stack 👏
Is there an existing issue for this?
Do you want this issue prioritized?
Current Behavior
App compiles and renders correctly when targeting web with next but title error is shown on simulator with expo. Can successfully create development builds on AES and launch but nothing rendered before error.
Expected Behavior
Native app would render shared app packages same as on web.
Steps To Reproduce
(Note: I have tried the react-fast-image implementation and the default expo-image, same result)
Versions
Screenshots
error screenshot
react-fast-image attempt
Reproduction
App bundle download - can give access to source on request