hoanglam10499 / react-native-drop-shadow

https://www.npmjs.com/package/react-native-drop-shadow
MIT License
229 stars 9 forks source link

Error: "DropShadow" was not found in the UIManager #26

Closed unstopp closed 1 year ago

unstopp commented 1 year ago

Hello,

I am getting this error on Android. Any clues? requireNativeComponent: "DropShadow" was not found in the UIManager.

Any help is very much appreciated, thank you!

jpbast commented 1 year ago

Same here

unstopp commented 1 year ago

Any news on this?

hyoretsu commented 1 year ago

@hoanglam10499 Also got this, really wanting to use your lib.

PineAppleGrits commented 1 year ago

+1

nonotnoah commented 1 year ago

I'm also having this issue. I tried installing older versions of this package, but I get the same issue.

PineAppleGrits commented 1 year ago

I solved the issue by (in my case) building the development build with expo. I think the thing was that it needed to implement the native code to make this work

unstopp commented 1 year ago

I solved the issue by (in my case) building the development build with expo. I think the thing was that it needed to implement the native code to make this work

I'm using expo as well. Can you tell us how exactly?

nonotnoah commented 1 year ago

@PineAppleGrits

I solved the issue by (in my case) building the development build with expo. I think the thing was that it needed to implement the native code to make this work

I gave this a try, but I couldn't get it to work. I'm sure I could figure it out, but it takes almost 10 minutes to build and run my app which very inconvenient if I'm just trying to quickly see what a drop shadow looks like on a component.

Was this the method you're talking about?

PineAppleGrits commented 1 year ago

I think the solution could be installing the package via npx expo install and then building the development build, have y'all tried that? At least that's what worked for me

xml12333 commented 1 year ago

Same problem on physical android device, with expo dev.

hoanglam10499 commented 1 year ago

hi, try version 0.0.8 => Expo is not supported

Fardin96 commented 1 year ago

hi, try version 0.0.8 => Expo is not supported

Didn't work in my case. not using expo btw.

Fardin96 commented 1 year ago

The following solution works in my case!

https://github.com/hoanglam10499/react-native-drop-shadow/issues/1#issuecomment-659589521

just need to re-sync the android gradle using

cd android && ./gradlew clean

and then build.

willnaoosmith commented 1 year ago

If someone comes to this error again and this doesn't work:

cd android && ./gradlew clean

Add this top your android/settings.gradle file:

include ':react-native-shadow'
project(':react-native-shadow').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/shadow/android')

Then re-run react-native run-android