react-native-fast-image icon indicating copy to clipboard operation
react-native-fast-image copied to clipboard

Add documentation about how to implement it in Expo

Open BrodaNoel opened this issue 4 years ago • 15 comments

It may be good to have some documentation about how to implement it in Expo

BrodaNoel avatar Oct 10 '21 01:10 BrodaNoel

same issue

AnoyiX avatar Oct 21 '21 09:10 AnoyiX

https://expo.canny.io/feature-requests/p/react-native-fast-image

kaueDM avatar Oct 29 '21 12:10 kaueDM

@kaueDM that's just the documentation of how to add it to package.json

We need documentation about how to use it in Expo.

BrodaNoel avatar Oct 29 '21 12:10 BrodaNoel

In the current documentation (readme file), it ask for running "pod install". That's not compatible with Expo

BrodaNoel avatar Oct 29 '21 12:10 BrodaNoel

@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 avatar Oct 29 '21 12:10 kaueDM

@kaueDM How can it be the exact same thing? Linking doesn't exist in Expo, neither does pod install.

ataravati avatar Nov 20 '21 00:11 ataravati

@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 avatar Nov 20 '21 00:11 kaueDM

@kaueDM Thanks! I'll give it a try.

ataravati avatar Nov 20 '21 00:11 ataravati

@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 Will this make it work in Expo Go?

ansmlc avatar Apr 24 '22 18:04 ansmlc

No, you can't use native modules on expo go. That's why custom clients exists.

kaueDM avatar Apr 24 '22 18:04 kaueDM

Can you still use EAS build service if you've setup iOS/android folders locally for expo-dev-client ?

ahmed-fayyaz-dev avatar Aug 25 '22 08:08 ahmed-fayyaz-dev

@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?

appsgenie avatar Sep 10 '23 23:09 appsgenie

@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.

kaueDM avatar Sep 10 '23 23:09 kaueDM

Take a look at 'expo-image'.

BrodaNoel avatar Sep 10 '23 23:09 BrodaNoel

@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..

appsgenie avatar Sep 10 '23 23:09 appsgenie