'"ViewManagerAdapter_ExpoLinearGradient" was not found in the UIManager

I am using Expo 44. The project works fine for android. But for IOS, it gives a strange error:

Invariant Violation: requireNativeComponent: "ViewManagerAdapter_ExpoLinearGradient" was not found in the UIManager.

I have done "expo install expo-linear-gradient" & "yarn add expo-linear-gradient". Also added the pod:

pod 'ExpoLinearGradient', :path => '../node_modules/expo-linear-gradient/ios'

But none of it helps. Can someone please suggest a way out of this?



Solution 1:[1]

hope you've resolve your reported error with expo-linear-gradient above?

If haven't, I downgraded the latest 11.0.3 package version to the 10.0.3 version - rebuild both ios, android and now error resolved.

for example in package.json file:

"expo-linear-gradient": "10.0.3",

npm expo-linear-gradient releases

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 brifiction