Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invariant Violation: requireNativeComponent: "ARTShape" was not found in the UIManager #64

Open
devrudraa opened this issue Feb 24, 2023 · 2 comments

Comments

@devrudraa
Copy link

I am using it for react native with expo and this is giving me an error please solve

Source Code
import { Shadow } from 'react-native-neomorph-shadows';
export default function LoginScreen() {
return (
<Shadow
inner // <- enable inner shadow
useArt // <- set this prop to use non-native shadow on ios
style={{
shadowOffset: { width: 10, height: 10 },
shadowOpacity: 1,
shadowColor: "grey",
shadowRadius: 10,
borderRadius: 20,
backgroundColor: 'white',
width: 100,
height: 100,
// ...include most of View/Layout styles
}}
>

)
}

@KristampsWong
Copy link

KristampsWong commented Mar 7, 2023

adding

pod 'ReactNativeART', :path => '../node_modules/@react-native-community/art'

to podfile /ios/podfile
then

pod install

it works for me

@huperniketes
Copy link

This occurs because @react-native-community/art is an upgrade of an old RN package that's manually linked. Remove the manual link with

npx react-native unlink @react-native-community/art

and the autolinking process in RN 60+ will work correctly the next time you run

cd ios && pod install && cd ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants