Please provide the following:
- SDK Version: 40 (expo-modules-core: 1.2.6)
- Platforms(Android/iOS/web/all): Android
- Add the appropriate “Tag” based on what Expo library you have a question on.
I’m working on a RN project that uses an expo-modules. Unlike on iOS, the local images are not showing.
The directory structure of the expo-modules project is:
expo-modules-project/
├─ build/
├─ src/
│ ├─ ...components...
├─ assets/
│ ├─ ...image-files...
How I bring the images:
<Image source={require("../assets/image.png")} styles={{ width: 100, height: 100}} />
- The expo-modules project has image assets(.PNG) and
<Image />
component that shows the assets. - No issues directly showing images on the host RN project. (Not using the expo-modules project)
- Remote images are showing without any problem on both platforms through the expo-modules.
- The images show up well on iOS, but not on Android through the expo-modules, and there’s no warnings or errors.
- I’ve tried different image formats, sizes, styles of the component and different versions of Android SDKs.
Any idea where I should look into?