Closed jcamden closed 1 year ago
Hey, can you follow the Expo steps for the installation guide? https://solito.dev/usage/image#installation
Thanks for the response! I like that there are options. I tried out the non-optimized Expo Go route. I had to modify node_modules/solito/image/expo/index.js with an additional double period in order to get out to the root:
export * from '../../build/image/expo'
I'll also try out the custom dev server approach when I can negotiate a time with my wife ;) Thanks again for this awesome work. So gonna buy you a coffee.
Looks like the issue mentioned above was already addressed/fixed here and is out with 2.0.8. I will update. Also... after some Googling, it appears to be not possible and unnecessary to buy you a coffee 👍
Hi @jcamden did you manage to get this working with the other options other than Expo Go? I've come across the same issue and am at a loss.
I managed to get rid of the error 'FastImageView" was not found in the UIManager.'
.
However, now I get no errors but none of the images render. I can even put a random string into SolitoImage
's src
prop, and get no errors.
It also seems like adding a height
does not affect the rendered component's height, even though modifying the height via the style
prop does 😕
I’ll investigate this tomorrow, I have some ideas. The issues you’re mentioning sound unrelated to the Expo ones, but I think I know a potential fix.
I’ll investigate this tomorrow, I have some ideas. The issues you’re mentioning sound unrelated to the Expo ones, but I think I know a potential fix.
Thanks @nandorojo, much appreciated!
If I get any of it working I'll report back
Can you try updating to version 2.1.3
?
Hello! I'm new to Solito (thanks for making this!), and I've been trying to get started with the minimal starter project, but I've been really hung up on images: using
SolitoImage
works as expected (i.e. next/image) on Next dev server---which is cool. However, for both native platforms, it's not able to make use of react-native-fast-image:Could that be because react-native-fast-image is only a devDep (rather than dep) in the solito package.json? My best guess was to resolve this locally by adding this to deps in a package.json:
I tried the apps/expo package (probably the best place for it), and I also tried packages/app. In either case, I can then advance to this error:
After looking into that a little bit, I sense that I was out of my depth, particularly with respect to how some solutions involving react-native (cocoa?)pods would relate to an expo/solito project.
Any chance you could give me some guidance on how to use images in a Solito project? Could it also make sense to provide an example in the starter projects? Really appreciate your awesome work :)