react-native-fast-image
react-native-fast-image copied to clipboard
Add documentation about how to implement it in Expo
It may be good to have some documentation about how to implement it in Expo
same issue
https://expo.canny.io/feature-requests/p/react-native-fast-image
@kaueDM that's just the documentation of how to add it to package.json
We need documentation about how to use it in Expo.
In the current documentation (readme file), it ask for running "pod install". That's not compatible with Expo
@BrodaNoel is the exact same thing. Following the instructions from the link I sent it will create and android and ios folder. Just follow the installation instructions from this repo after that and you're good to go. I'm currently using fast-image with expo and have no issues.
@kaueDM How can it be the exact same thing? Linking doesn't exist in Expo, neither does pod install.
@ataravati Did you read the link I sent? If not, take a loot at this one:
https://docs.expo.dev/development/introduction/
Custom development clients will behave like CLI apps. You just have to install the custom dev client lib:
yarn add expo-dev-client
and then install any native lib you want, like fast image
yarn add react-native-fast-image
That's it. To run locally, use expo run:ios or expo run:android. This run methods will create the iOS and Android folders, so you can do anything described on this repo instructions (e.g. pod install)
@kaueDM Thanks! I'll give it a try.
@ataravati Did you read the link I sent? If not, take a loot at this one:
https://docs.expo.dev/development/introduction/
Custom development clients will behave like CLI apps. You just have to install the custom dev client lib:
yarn add expo-dev-clientand then install any native lib you want, like
fast image
yarn add react-native-fast-imageThat's it. To run locally, use
expo run:iosorexpo run:android. Thisrunmethods will create the iOS and Android folders, so you can do anything described on this repo instructions (e.g.pod install)
@kaueDM Will this make it work in Expo Go?
No, you can't use native modules on expo go. That's why custom clients exists.
Can you still use EAS build service if you've setup iOS/android folders locally for expo-dev-client ?
@kaueDM your suggesting is good but that's more equivalent to an eject I think. Most of us want to stay with the managed expo flow even on EAS. So with custom dev clients in expo, I think we need a plugin to make it work no?
@kaueDM your suggesting is good but that's more equivalent to an eject I think. Most of us want to stay with the managed expo flow even on EAS. So with custom dev clients in expo, I think we need a plugin to make it work no?
It still managed and you can build on EAS, I have being doing it for months. The only downside its that you can't use the Expo Go app to test, you need to build a custom dev client and run it in your emulator/device.
Take a look at 'expo-image'.
@kaueDM yes that is ok with me as I can't use Expo Go anymore anyways but was just not sure if doing an install in my project without anything else will suffice.
@BrodaNoel I was looking at Discord and there are so many complaints about expo-image that I am a bit scared to install it yet :) plus was not able to get to the latest version because it said the correct version for my project is 1.0.1 but there are a few bug fixes in the latest version, so I think I would rather wait not sure..