Slider images show in local dev but not published or standalone

#1

Hey gang,

I’m writing an expo app with a custom slider. It looks great when I’m previewing it in the expo preview app, but when I build it for standalone, it just renders the default slider (ie, with no images.)

All other images / media are working.

Anyone know where to start debugging this?

#2

Hi @jpteasdale. Does the published url work in the main Expo app? If not, I’d recommend turning off dev mode and enabling minify in exp or XDE. This will be closer to how the published app behaves and you could debug there.

#3

Hey @jesse you were right, the published .js bundle didn’t work in Expo. I’m just starting it with yarn start, I’m looking at the documentation and I don’t see how to turn off development mode / minify from there.

#4

I ran it with exp start --no-dev --minify and it still works locally. When I exp publish, it still doesn’t show.

Edit: I made the app public if anyone wants to take a look.

https://exp.host/@jpteasdale/action-news-game-timer

#5

Here’s a snack that demonstrated the behavior. https://snack.expo.io/rJor-fhNG

#6

I ended up making my own slider component. I imagine the problem was because of some sort of loading behavior that was different in the published app. Very strange.

Here’s the slider code if anyone’s interested. https://snack.expo.io/HJdit4pEf

1 Like
closed #7

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.