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: Native component for "SRSRadialGradient" does not exist #2

Closed
stan-devproject opened this issue Feb 19, 2018 · 9 comments

Comments

@stan-devproject
Copy link

Hi! Thanks for this project!

I`m trying to get it set on a new React Native project on iOS, carefully going through your instructions.

But got this and have no idea how to fix it:
Invariant Violation: Native component for "SRSRadialGradient" does not exist

This error is located at:
in SRSRadialGradient (at index.js:28)
in RCTView (at View.js:71)
in View (at index.js:27)
in RadialGradient (at App.js:21)
in App (at renderApplication.js:35)
in RCTView (at View.js:71)
in View (at AppContainer.js:102)
in RCTView (at View.js:71)
in View (at AppContainer.js:122)
in AppContainer (at renderApplication.js:34)

getViewConfig
requireNativeComponent.js:112:6
get$1
ReactNativeRenderer-dev.js:11859:17
createInstance
ReactNativeRenderer-dev.js:12022:27
completeWork
ReactNativeRenderer-dev.js:8814:14
completeUnitOfWork
ReactNativeRenderer-dev.js:10418:8
performUnitOfWork
ReactNativeRenderer-dev.js:10523:32
workLoop
ReactNativeRenderer-dev.js:10584:43
_invokeGuardedCallback
ReactNativeRenderer-dev.js:134:15
invokeGuardedCallback
ReactNativeRenderer-dev.js:67:32
renderRoot
ReactNativeRenderer-dev.js:10677:30
performWorkOnRoot
ReactNativeRenderer-dev.js:11449:34
performWork
ReactNativeRenderer-dev.js:11364:8
requestWork
ReactNativeRenderer-dev.js:11258:18
scheduleWorkImpl
ReactNativeRenderer-dev.js:11099:22
scheduleRootUpdate
ReactNativeRenderer-dev.js:11690:17
render
ReactNativeRenderer-dev.js:12919:35
renderApplication
renderApplication.js:58:21
runApplication
AppRegistry.js:196:26
__callFunction
MessageQueue.js:353:47

MessageQueue.js:118:26
__guardSafe
MessageQueue.js:316:6
callFunctionReturnFlushedQueue
MessageQueue.js:117:17

I tried to fix this using https://stackoverflow.com/questions/47672941/invariant-violation-native-component-for-rnsvgsvgview-does-not-exist but this didn`t help.
Maybe you have some ideas?

@surajitsarkar19
Copy link
Owner

Hi,
Please use the latest library v1.0.2. It should solve your IOS problem.

@carmenchapa
Copy link

Hi,
I am having the same problem. Just install react-native-radial-gradient and my version is "^1.0.3".
Any help?

Thanks!

@surajit-bitcanny
Copy link
Collaborator

surajit-bitcanny commented Apr 13, 2018

I think you have created the react native project using create-react-native-app command. This library renders a native view. So it will not work with projects that are created using create-react-native-app. You should create your project using react-native init or you have to convert your project to a native implementation. Follow this link for more info

@kashmiry
Copy link

Facing same issue, how can I fix it.
Version: 1.0.5
ReactNative version: 0.59.0
Not using expo, created with react-native init

@rajeshde
Copy link

rajeshde commented Aug 1, 2019

I am using RN 0.60.4 and react-native-radial-gradient version 1.0.5

I am using Cocoapods, therefore I have included it in pod file
pod 'SRSRadialGradient', :path => '../node_modules/react-native-radial-gradient/ios'

and getting this error
Invariant Violation: requireNativeComponent: "SRSRadialGradient" was not found in the UIManager.

@1130419
Copy link

1130419 commented Oct 6, 2019

I am using RN 0.60.4 and react-native-radial-gradient version 1.0.5

I am using Cocoapods, therefore I have included it in pod file
pod 'SRSRadialGradient', :path => '../node_modules/react-native-radial-gradient/ios'

and getting this error
Invariant Violation: requireNativeComponent: "SRSRadialGradient" was not found in the UIManager.

I am using RN 0.61.2 and got the same issue

@tahalakrati
Copy link

Same here, why was this issue closed? Did you guys find a solution?

@mclant
Copy link

mclant commented Mar 26, 2024

same issue. using Expo and "react-native-radial-gradient": "^1.1.4"

@wuguishifu
Copy link

Issue has been happening for 6 years. Anyone have a solution?

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

10 participants