chramos / react-native-skeleton-placeholder

SkeletonPlaceholder is a React Native library to easily create an amazing loading effect.
MIT License
674 stars 119 forks source link

requireNativeComponent: "BVLinearGradient" was not found in the UIManager when I use Expo #75

Open sylainx opened 2 years ago

sylainx commented 2 years ago

I've been trying to implement se Package in my Expo project for a few days. Without success. I keep getting the same error

` "dependencies": {

"react-native-paper": "4.9.2",

"@expo/vector-icons": "^12.0.0",

"expo-constants": "~12.1.3",

"react-native-skeleton-placeholder": "*",

"@react-native-masked-view/masked-view": "0.2.5",

"react-native-linear-gradient": "2.5.6" 

} `

alexander01202 commented 2 years ago

No one solved this yet??

Equilibris commented 2 years ago

I'm also having this issue

chramos commented 2 years ago

hey guys, this package is not compatible with expo yet

mhr996 commented 2 years ago

hey guys, this package is not compatible with expo yet

When will this be available for expo? please configure it asap

SurendraVSS commented 2 years ago

Please solve the issue?

Je4stine commented 2 years ago

No yet solved?

SurendraVSS commented 2 years ago

Yes, you need to go for an alternative package bcoz it does not work with expo or you can use react cli. This package works good with react cli.

On Sun, Aug 21, 2022 at 5:17 PM Jeff Austine @.***> wrote:

No yet solved?

— Reply to this email directly, view it on GitHub https://github.com/chramos/react-native-skeleton-placeholder/issues/75#issuecomment-1221529660, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZP7H6EM3O4RQOAGBEFDHDLV2IJOPANCNFSM5OHY3F5Q . You are receiving this because you commented.Message ID: @.*** com>

djw27 commented 1 year ago

See https://github.com/chramos/react-native-skeleton-placeholder/issues/65#issuecomment-1311809097 for a potential workaround

NabeelUppel commented 1 year ago

I believe you have to use the dev-client. https://docs.expo.dev/development/create-development-builds/

This creates a client that allows BVLinearGradient to be registered

YasserShkeir commented 1 year ago

Check the discussion for Expo Fix:

https://github.com/chramos/react-native-skeleton-placeholder/discussions/114

dariodaich commented 1 year ago

@YasserShkeir thanks for the effort on the fix, but reaching into a package and manually applying patches isn't the way to go.

If there are no plans to provide the fix, at least the documentation can mention it.

Alireza17224 commented 1 year ago

Same issue here

ujithdon commented 11 months ago

I tried many things, but still, the issue is there. Agree with @chramos

lada commented 11 months ago

The fix by @YasserShkeir works for me with SDK 49 (make sure you have expo-linear-gradient installed). You can then create a patch with patch-package. Not perfect, but it works.