Native component for RNCardView does not exist
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I know there is already a lot of similar posts with this error, but none of them are solving my issue ..
I've been trying to setup react-native-cardview on my project, but I keep on receiving the following error :
Invariant Violation: Native component for "RNCardView" does not exist
This error is located at:
in RCTText (at Text.js:548)
in Text (at Button.js:137)
in RCTView (at View.js:71)
in View (at Button.js:136)
in TouchableNativeFeedback (at Button.js:128)
in Button (at FormLogin.js:45)
in RNCardView (at FormLogin.js:21)
in RCTView (at View.js:71)
in View (at FormLogin.js:20)
in FormLogin (at SceneView.js:17)
in SceneView (at CardStack.js:374)
in RCTView (at View.js:71)
in View (at CardStack.js:373)
in RCTView (at View.js:71)
in View (at CardStack.js:372)
in RCTView (at View.js:71)
in View (at createAnimatedComponent.js:147)
in AnimatedComponent (at Card.js:12)
in Card (at PointerEventsContainer.js:39)
in Container (at CardStack.js:414)
in RCTView (at View.js:71)
in View (at CardStack.js:348)
in RCTView (at View.js:71)
in View (at CardStack.js:347)
in CardStack (at CardStackTransitioner.js:66)
in RCTView (at View.js:71)
in View (at Transitioner.js:142)
in Transitioner (at CardStackTransitioner.js:19)
in CardStackTransitioner (at StackNavigator.js:38)
in Unknown (at createNavigator.js:13)
in Navigator (at createNavigationContainer.js:214)
in NavigationContainer (at registerRootComponent.js:35)
in RootErrorBoundary (at registerRootComponent.js:34)
in ExpoRootComponent (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)
Here is my app.json
{
"expo": {
"sdkVersion": "25.0.0",
"android": {
"package": "hiking"
},
"name": "Hiking",
"slug": "hiking",
"version": "0.1.0",
"isDetached": true,
"detach": {
"scheme": "exp56fa0b6664574a6ea12b193494508d48",
"androidExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/android-v2.3.0-sdk25.0.0-0c32461b-a7c6-4ddc-b85b-32a80c4f18d9.tar.gz"
}
}
}
and package.json
{
"name": "Hiking",
"version": "0.1.0",
"private": true,
"devDependencies": {
"jest-expo": "25.0.0",
"react-test-renderer": "16.2.0"
},
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"test": "node node_modules/jest/bin/jest.js"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"expo": "^25.0.0",
"react": "16.2.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz",
"react-native-cardview": "^1.1.5",
"react-native-maps": "^0.20.1",
"react-navigation": "^1.0.3",
"rn-textinputlayout": "^1.0.5"
}
}
react-native link react-native-cardview didn't solve the issue.
Installing manually (as in the readme) didn't solve the issue.
Rebuilding and restarting the server didn't solve the issue.
I've been able to successfully install other libraries (such as maps or textinputlayout).
react-native cardview
add a comment |
I know there is already a lot of similar posts with this error, but none of them are solving my issue ..
I've been trying to setup react-native-cardview on my project, but I keep on receiving the following error :
Invariant Violation: Native component for "RNCardView" does not exist
This error is located at:
in RCTText (at Text.js:548)
in Text (at Button.js:137)
in RCTView (at View.js:71)
in View (at Button.js:136)
in TouchableNativeFeedback (at Button.js:128)
in Button (at FormLogin.js:45)
in RNCardView (at FormLogin.js:21)
in RCTView (at View.js:71)
in View (at FormLogin.js:20)
in FormLogin (at SceneView.js:17)
in SceneView (at CardStack.js:374)
in RCTView (at View.js:71)
in View (at CardStack.js:373)
in RCTView (at View.js:71)
in View (at CardStack.js:372)
in RCTView (at View.js:71)
in View (at createAnimatedComponent.js:147)
in AnimatedComponent (at Card.js:12)
in Card (at PointerEventsContainer.js:39)
in Container (at CardStack.js:414)
in RCTView (at View.js:71)
in View (at CardStack.js:348)
in RCTView (at View.js:71)
in View (at CardStack.js:347)
in CardStack (at CardStackTransitioner.js:66)
in RCTView (at View.js:71)
in View (at Transitioner.js:142)
in Transitioner (at CardStackTransitioner.js:19)
in CardStackTransitioner (at StackNavigator.js:38)
in Unknown (at createNavigator.js:13)
in Navigator (at createNavigationContainer.js:214)
in NavigationContainer (at registerRootComponent.js:35)
in RootErrorBoundary (at registerRootComponent.js:34)
in ExpoRootComponent (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)
Here is my app.json
{
"expo": {
"sdkVersion": "25.0.0",
"android": {
"package": "hiking"
},
"name": "Hiking",
"slug": "hiking",
"version": "0.1.0",
"isDetached": true,
"detach": {
"scheme": "exp56fa0b6664574a6ea12b193494508d48",
"androidExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/android-v2.3.0-sdk25.0.0-0c32461b-a7c6-4ddc-b85b-32a80c4f18d9.tar.gz"
}
}
}
and package.json
{
"name": "Hiking",
"version": "0.1.0",
"private": true,
"devDependencies": {
"jest-expo": "25.0.0",
"react-test-renderer": "16.2.0"
},
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"test": "node node_modules/jest/bin/jest.js"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"expo": "^25.0.0",
"react": "16.2.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz",
"react-native-cardview": "^1.1.5",
"react-native-maps": "^0.20.1",
"react-navigation": "^1.0.3",
"rn-textinputlayout": "^1.0.5"
}
}
react-native link react-native-cardview didn't solve the issue.
Installing manually (as in the readme) didn't solve the issue.
Rebuilding and restarting the server didn't solve the issue.
I've been able to successfully install other libraries (such as maps or textinputlayout).
react-native cardview
I use this module succesfully. It has some auto linking issues (when runningreact-native link
. Let me check and get back to you.
– Noitidart
Feb 18 '18 at 17:12
I've been trying to setup react-native-cardview on my project, but I keep on receiving the same error as the author had. My project made with react-native init, no Expo at all, I have checked all the files in an android folder about ten times and everything on its places as it should be as it described on a GitHub. I have no idea why it does not work.
– user7245021
Apr 2 '18 at 14:00
I am also getting same issue , did you able to resolved the issue ?
– Anita
Oct 22 '18 at 6:14
I fixed my problem, the answer is accepted below
– Arthur Attout
Oct 22 '18 at 8:33
add a comment |
I know there is already a lot of similar posts with this error, but none of them are solving my issue ..
I've been trying to setup react-native-cardview on my project, but I keep on receiving the following error :
Invariant Violation: Native component for "RNCardView" does not exist
This error is located at:
in RCTText (at Text.js:548)
in Text (at Button.js:137)
in RCTView (at View.js:71)
in View (at Button.js:136)
in TouchableNativeFeedback (at Button.js:128)
in Button (at FormLogin.js:45)
in RNCardView (at FormLogin.js:21)
in RCTView (at View.js:71)
in View (at FormLogin.js:20)
in FormLogin (at SceneView.js:17)
in SceneView (at CardStack.js:374)
in RCTView (at View.js:71)
in View (at CardStack.js:373)
in RCTView (at View.js:71)
in View (at CardStack.js:372)
in RCTView (at View.js:71)
in View (at createAnimatedComponent.js:147)
in AnimatedComponent (at Card.js:12)
in Card (at PointerEventsContainer.js:39)
in Container (at CardStack.js:414)
in RCTView (at View.js:71)
in View (at CardStack.js:348)
in RCTView (at View.js:71)
in View (at CardStack.js:347)
in CardStack (at CardStackTransitioner.js:66)
in RCTView (at View.js:71)
in View (at Transitioner.js:142)
in Transitioner (at CardStackTransitioner.js:19)
in CardStackTransitioner (at StackNavigator.js:38)
in Unknown (at createNavigator.js:13)
in Navigator (at createNavigationContainer.js:214)
in NavigationContainer (at registerRootComponent.js:35)
in RootErrorBoundary (at registerRootComponent.js:34)
in ExpoRootComponent (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)
Here is my app.json
{
"expo": {
"sdkVersion": "25.0.0",
"android": {
"package": "hiking"
},
"name": "Hiking",
"slug": "hiking",
"version": "0.1.0",
"isDetached": true,
"detach": {
"scheme": "exp56fa0b6664574a6ea12b193494508d48",
"androidExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/android-v2.3.0-sdk25.0.0-0c32461b-a7c6-4ddc-b85b-32a80c4f18d9.tar.gz"
}
}
}
and package.json
{
"name": "Hiking",
"version": "0.1.0",
"private": true,
"devDependencies": {
"jest-expo": "25.0.0",
"react-test-renderer": "16.2.0"
},
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"test": "node node_modules/jest/bin/jest.js"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"expo": "^25.0.0",
"react": "16.2.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz",
"react-native-cardview": "^1.1.5",
"react-native-maps": "^0.20.1",
"react-navigation": "^1.0.3",
"rn-textinputlayout": "^1.0.5"
}
}
react-native link react-native-cardview didn't solve the issue.
Installing manually (as in the readme) didn't solve the issue.
Rebuilding and restarting the server didn't solve the issue.
I've been able to successfully install other libraries (such as maps or textinputlayout).
react-native cardview
I know there is already a lot of similar posts with this error, but none of them are solving my issue ..
I've been trying to setup react-native-cardview on my project, but I keep on receiving the following error :
Invariant Violation: Native component for "RNCardView" does not exist
This error is located at:
in RCTText (at Text.js:548)
in Text (at Button.js:137)
in RCTView (at View.js:71)
in View (at Button.js:136)
in TouchableNativeFeedback (at Button.js:128)
in Button (at FormLogin.js:45)
in RNCardView (at FormLogin.js:21)
in RCTView (at View.js:71)
in View (at FormLogin.js:20)
in FormLogin (at SceneView.js:17)
in SceneView (at CardStack.js:374)
in RCTView (at View.js:71)
in View (at CardStack.js:373)
in RCTView (at View.js:71)
in View (at CardStack.js:372)
in RCTView (at View.js:71)
in View (at createAnimatedComponent.js:147)
in AnimatedComponent (at Card.js:12)
in Card (at PointerEventsContainer.js:39)
in Container (at CardStack.js:414)
in RCTView (at View.js:71)
in View (at CardStack.js:348)
in RCTView (at View.js:71)
in View (at CardStack.js:347)
in CardStack (at CardStackTransitioner.js:66)
in RCTView (at View.js:71)
in View (at Transitioner.js:142)
in Transitioner (at CardStackTransitioner.js:19)
in CardStackTransitioner (at StackNavigator.js:38)
in Unknown (at createNavigator.js:13)
in Navigator (at createNavigationContainer.js:214)
in NavigationContainer (at registerRootComponent.js:35)
in RootErrorBoundary (at registerRootComponent.js:34)
in ExpoRootComponent (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)
Here is my app.json
{
"expo": {
"sdkVersion": "25.0.0",
"android": {
"package": "hiking"
},
"name": "Hiking",
"slug": "hiking",
"version": "0.1.0",
"isDetached": true,
"detach": {
"scheme": "exp56fa0b6664574a6ea12b193494508d48",
"androidExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/android-v2.3.0-sdk25.0.0-0c32461b-a7c6-4ddc-b85b-32a80c4f18d9.tar.gz"
}
}
}
and package.json
{
"name": "Hiking",
"version": "0.1.0",
"private": true,
"devDependencies": {
"jest-expo": "25.0.0",
"react-test-renderer": "16.2.0"
},
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"test": "node node_modules/jest/bin/jest.js"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"expo": "^25.0.0",
"react": "16.2.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz",
"react-native-cardview": "^1.1.5",
"react-native-maps": "^0.20.1",
"react-navigation": "^1.0.3",
"rn-textinputlayout": "^1.0.5"
}
}
react-native link react-native-cardview didn't solve the issue.
Installing manually (as in the readme) didn't solve the issue.
Rebuilding and restarting the server didn't solve the issue.
I've been able to successfully install other libraries (such as maps or textinputlayout).
react-native cardview
react-native cardview
edited Feb 18 '18 at 15:54
Arthur Attout
asked Feb 18 '18 at 15:45
Arthur AttoutArthur Attout
1,209627
1,209627
I use this module succesfully. It has some auto linking issues (when runningreact-native link
. Let me check and get back to you.
– Noitidart
Feb 18 '18 at 17:12
I've been trying to setup react-native-cardview on my project, but I keep on receiving the same error as the author had. My project made with react-native init, no Expo at all, I have checked all the files in an android folder about ten times and everything on its places as it should be as it described on a GitHub. I have no idea why it does not work.
– user7245021
Apr 2 '18 at 14:00
I am also getting same issue , did you able to resolved the issue ?
– Anita
Oct 22 '18 at 6:14
I fixed my problem, the answer is accepted below
– Arthur Attout
Oct 22 '18 at 8:33
add a comment |
I use this module succesfully. It has some auto linking issues (when runningreact-native link
. Let me check and get back to you.
– Noitidart
Feb 18 '18 at 17:12
I've been trying to setup react-native-cardview on my project, but I keep on receiving the same error as the author had. My project made with react-native init, no Expo at all, I have checked all the files in an android folder about ten times and everything on its places as it should be as it described on a GitHub. I have no idea why it does not work.
– user7245021
Apr 2 '18 at 14:00
I am also getting same issue , did you able to resolved the issue ?
– Anita
Oct 22 '18 at 6:14
I fixed my problem, the answer is accepted below
– Arthur Attout
Oct 22 '18 at 8:33
I use this module succesfully. It has some auto linking issues (when running
react-native link
. Let me check and get back to you.– Noitidart
Feb 18 '18 at 17:12
I use this module succesfully. It has some auto linking issues (when running
react-native link
. Let me check and get back to you.– Noitidart
Feb 18 '18 at 17:12
I've been trying to setup react-native-cardview on my project, but I keep on receiving the same error as the author had. My project made with react-native init, no Expo at all, I have checked all the files in an android folder about ten times and everything on its places as it should be as it described on a GitHub. I have no idea why it does not work.
– user7245021
Apr 2 '18 at 14:00
I've been trying to setup react-native-cardview on my project, but I keep on receiving the same error as the author had. My project made with react-native init, no Expo at all, I have checked all the files in an android folder about ten times and everything on its places as it should be as it described on a GitHub. I have no idea why it does not work.
– user7245021
Apr 2 '18 at 14:00
I am also getting same issue , did you able to resolved the issue ?
– Anita
Oct 22 '18 at 6:14
I am also getting same issue , did you able to resolved the issue ?
– Anita
Oct 22 '18 at 6:14
I fixed my problem, the answer is accepted below
– Arthur Attout
Oct 22 '18 at 8:33
I fixed my problem, the answer is accepted below
– Arthur Attout
Oct 22 '18 at 8:33
add a comment |
3 Answers
3
active
oldest
votes
For those who are running into the same issue, I managed to fix it by completely changing the way the project was handled.
What I had was a project made with create-react-native-app
, which I ejected, to run it with Expo XDE.
I created another project with react-native init
, copy-pasted my .js files and npm install
, everything ran flawlessly.
It seems that Expo XDE didn't handle react-native link
instructions properly, and was a bit lost.
Anyways, go for react-native init
instead of ejecting a project.
add a comment |
I use this module succesfully. It has some auto linking issues (when running react-native link
. This is the stuff I had to do to fix it for Android:
android/app/src/main/java/com/YOUR_APP_ID_HERE/MainApplication.java
, removeimport com.reactlibrary.RNCardViewPackage;
and replace it withimport com.kishanjvaghela.cardview.RNCardViewPackage;
The first fix should be all you need, but in same file make sure you have in
protected List<ReactPackage> getPackages() {
an entrynew RNCardViewPackage()
In
android/settings.gradle
make sure you have these lines:
include ':react-native-cardview'
project(':react-native-cardview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cardview/android')
Lastly I dont think this is a problem with this module, but check to be sure. If you are using RN 0.47 plus, go to the node_modules directory and remove the createJSModules
if its there - https://github.com/jsierles/react-native-audio/pull/216/files
Thanks ! I'm checking this and I'll be back to you if I have anything
– Arthur Attout
Feb 18 '18 at 17:58
Unfortunately, none of the solutions worked .. I think it's something with my particular setup, instead of a general problem. Thanks anyway !
– Arthur Attout
Feb 18 '18 at 18:39
@Arthur that's weird I use this succesfully across a bunch of projects since RN 0.46. Most recently installed it into 0.51. Try updating to latest RN.
– Noitidart
Feb 18 '18 at 20:14
I just ran react-native-git-upgrade, and it didn't fix anything. Which library are you using for cardview ? I use Kishanjvaghela/react-native-cardview
– Arthur Attout
Feb 18 '18 at 20:52
@ArthurAttout I use the same exact one, I even made some PRs to fix some stuff.
– Noitidart
Feb 18 '18 at 22:56
add a comment |
Just an add on @Noitidart Answer, your getPackages() inside "MainApplication.java" will look like this
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNCardViewPackage()
);
}
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48853490%2fnative-component-for-rncardview-does-not-exist%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
For those who are running into the same issue, I managed to fix it by completely changing the way the project was handled.
What I had was a project made with create-react-native-app
, which I ejected, to run it with Expo XDE.
I created another project with react-native init
, copy-pasted my .js files and npm install
, everything ran flawlessly.
It seems that Expo XDE didn't handle react-native link
instructions properly, and was a bit lost.
Anyways, go for react-native init
instead of ejecting a project.
add a comment |
For those who are running into the same issue, I managed to fix it by completely changing the way the project was handled.
What I had was a project made with create-react-native-app
, which I ejected, to run it with Expo XDE.
I created another project with react-native init
, copy-pasted my .js files and npm install
, everything ran flawlessly.
It seems that Expo XDE didn't handle react-native link
instructions properly, and was a bit lost.
Anyways, go for react-native init
instead of ejecting a project.
add a comment |
For those who are running into the same issue, I managed to fix it by completely changing the way the project was handled.
What I had was a project made with create-react-native-app
, which I ejected, to run it with Expo XDE.
I created another project with react-native init
, copy-pasted my .js files and npm install
, everything ran flawlessly.
It seems that Expo XDE didn't handle react-native link
instructions properly, and was a bit lost.
Anyways, go for react-native init
instead of ejecting a project.
For those who are running into the same issue, I managed to fix it by completely changing the way the project was handled.
What I had was a project made with create-react-native-app
, which I ejected, to run it with Expo XDE.
I created another project with react-native init
, copy-pasted my .js files and npm install
, everything ran flawlessly.
It seems that Expo XDE didn't handle react-native link
instructions properly, and was a bit lost.
Anyways, go for react-native init
instead of ejecting a project.
answered Feb 18 '18 at 21:09
Arthur AttoutArthur Attout
1,209627
1,209627
add a comment |
add a comment |
I use this module succesfully. It has some auto linking issues (when running react-native link
. This is the stuff I had to do to fix it for Android:
android/app/src/main/java/com/YOUR_APP_ID_HERE/MainApplication.java
, removeimport com.reactlibrary.RNCardViewPackage;
and replace it withimport com.kishanjvaghela.cardview.RNCardViewPackage;
The first fix should be all you need, but in same file make sure you have in
protected List<ReactPackage> getPackages() {
an entrynew RNCardViewPackage()
In
android/settings.gradle
make sure you have these lines:
include ':react-native-cardview'
project(':react-native-cardview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cardview/android')
Lastly I dont think this is a problem with this module, but check to be sure. If you are using RN 0.47 plus, go to the node_modules directory and remove the createJSModules
if its there - https://github.com/jsierles/react-native-audio/pull/216/files
Thanks ! I'm checking this and I'll be back to you if I have anything
– Arthur Attout
Feb 18 '18 at 17:58
Unfortunately, none of the solutions worked .. I think it's something with my particular setup, instead of a general problem. Thanks anyway !
– Arthur Attout
Feb 18 '18 at 18:39
@Arthur that's weird I use this succesfully across a bunch of projects since RN 0.46. Most recently installed it into 0.51. Try updating to latest RN.
– Noitidart
Feb 18 '18 at 20:14
I just ran react-native-git-upgrade, and it didn't fix anything. Which library are you using for cardview ? I use Kishanjvaghela/react-native-cardview
– Arthur Attout
Feb 18 '18 at 20:52
@ArthurAttout I use the same exact one, I even made some PRs to fix some stuff.
– Noitidart
Feb 18 '18 at 22:56
add a comment |
I use this module succesfully. It has some auto linking issues (when running react-native link
. This is the stuff I had to do to fix it for Android:
android/app/src/main/java/com/YOUR_APP_ID_HERE/MainApplication.java
, removeimport com.reactlibrary.RNCardViewPackage;
and replace it withimport com.kishanjvaghela.cardview.RNCardViewPackage;
The first fix should be all you need, but in same file make sure you have in
protected List<ReactPackage> getPackages() {
an entrynew RNCardViewPackage()
In
android/settings.gradle
make sure you have these lines:
include ':react-native-cardview'
project(':react-native-cardview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cardview/android')
Lastly I dont think this is a problem with this module, but check to be sure. If you are using RN 0.47 plus, go to the node_modules directory and remove the createJSModules
if its there - https://github.com/jsierles/react-native-audio/pull/216/files
Thanks ! I'm checking this and I'll be back to you if I have anything
– Arthur Attout
Feb 18 '18 at 17:58
Unfortunately, none of the solutions worked .. I think it's something with my particular setup, instead of a general problem. Thanks anyway !
– Arthur Attout
Feb 18 '18 at 18:39
@Arthur that's weird I use this succesfully across a bunch of projects since RN 0.46. Most recently installed it into 0.51. Try updating to latest RN.
– Noitidart
Feb 18 '18 at 20:14
I just ran react-native-git-upgrade, and it didn't fix anything. Which library are you using for cardview ? I use Kishanjvaghela/react-native-cardview
– Arthur Attout
Feb 18 '18 at 20:52
@ArthurAttout I use the same exact one, I even made some PRs to fix some stuff.
– Noitidart
Feb 18 '18 at 22:56
add a comment |
I use this module succesfully. It has some auto linking issues (when running react-native link
. This is the stuff I had to do to fix it for Android:
android/app/src/main/java/com/YOUR_APP_ID_HERE/MainApplication.java
, removeimport com.reactlibrary.RNCardViewPackage;
and replace it withimport com.kishanjvaghela.cardview.RNCardViewPackage;
The first fix should be all you need, but in same file make sure you have in
protected List<ReactPackage> getPackages() {
an entrynew RNCardViewPackage()
In
android/settings.gradle
make sure you have these lines:
include ':react-native-cardview'
project(':react-native-cardview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cardview/android')
Lastly I dont think this is a problem with this module, but check to be sure. If you are using RN 0.47 plus, go to the node_modules directory and remove the createJSModules
if its there - https://github.com/jsierles/react-native-audio/pull/216/files
I use this module succesfully. It has some auto linking issues (when running react-native link
. This is the stuff I had to do to fix it for Android:
android/app/src/main/java/com/YOUR_APP_ID_HERE/MainApplication.java
, removeimport com.reactlibrary.RNCardViewPackage;
and replace it withimport com.kishanjvaghela.cardview.RNCardViewPackage;
The first fix should be all you need, but in same file make sure you have in
protected List<ReactPackage> getPackages() {
an entrynew RNCardViewPackage()
In
android/settings.gradle
make sure you have these lines:
include ':react-native-cardview'
project(':react-native-cardview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cardview/android')
Lastly I dont think this is a problem with this module, but check to be sure. If you are using RN 0.47 plus, go to the node_modules directory and remove the createJSModules
if its there - https://github.com/jsierles/react-native-audio/pull/216/files
answered Feb 18 '18 at 17:18
NoitidartNoitidart
18.5k1364164
18.5k1364164
Thanks ! I'm checking this and I'll be back to you if I have anything
– Arthur Attout
Feb 18 '18 at 17:58
Unfortunately, none of the solutions worked .. I think it's something with my particular setup, instead of a general problem. Thanks anyway !
– Arthur Attout
Feb 18 '18 at 18:39
@Arthur that's weird I use this succesfully across a bunch of projects since RN 0.46. Most recently installed it into 0.51. Try updating to latest RN.
– Noitidart
Feb 18 '18 at 20:14
I just ran react-native-git-upgrade, and it didn't fix anything. Which library are you using for cardview ? I use Kishanjvaghela/react-native-cardview
– Arthur Attout
Feb 18 '18 at 20:52
@ArthurAttout I use the same exact one, I even made some PRs to fix some stuff.
– Noitidart
Feb 18 '18 at 22:56
add a comment |
Thanks ! I'm checking this and I'll be back to you if I have anything
– Arthur Attout
Feb 18 '18 at 17:58
Unfortunately, none of the solutions worked .. I think it's something with my particular setup, instead of a general problem. Thanks anyway !
– Arthur Attout
Feb 18 '18 at 18:39
@Arthur that's weird I use this succesfully across a bunch of projects since RN 0.46. Most recently installed it into 0.51. Try updating to latest RN.
– Noitidart
Feb 18 '18 at 20:14
I just ran react-native-git-upgrade, and it didn't fix anything. Which library are you using for cardview ? I use Kishanjvaghela/react-native-cardview
– Arthur Attout
Feb 18 '18 at 20:52
@ArthurAttout I use the same exact one, I even made some PRs to fix some stuff.
– Noitidart
Feb 18 '18 at 22:56
Thanks ! I'm checking this and I'll be back to you if I have anything
– Arthur Attout
Feb 18 '18 at 17:58
Thanks ! I'm checking this and I'll be back to you if I have anything
– Arthur Attout
Feb 18 '18 at 17:58
Unfortunately, none of the solutions worked .. I think it's something with my particular setup, instead of a general problem. Thanks anyway !
– Arthur Attout
Feb 18 '18 at 18:39
Unfortunately, none of the solutions worked .. I think it's something with my particular setup, instead of a general problem. Thanks anyway !
– Arthur Attout
Feb 18 '18 at 18:39
@Arthur that's weird I use this succesfully across a bunch of projects since RN 0.46. Most recently installed it into 0.51. Try updating to latest RN.
– Noitidart
Feb 18 '18 at 20:14
@Arthur that's weird I use this succesfully across a bunch of projects since RN 0.46. Most recently installed it into 0.51. Try updating to latest RN.
– Noitidart
Feb 18 '18 at 20:14
I just ran react-native-git-upgrade, and it didn't fix anything. Which library are you using for cardview ? I use Kishanjvaghela/react-native-cardview
– Arthur Attout
Feb 18 '18 at 20:52
I just ran react-native-git-upgrade, and it didn't fix anything. Which library are you using for cardview ? I use Kishanjvaghela/react-native-cardview
– Arthur Attout
Feb 18 '18 at 20:52
@ArthurAttout I use the same exact one, I even made some PRs to fix some stuff.
– Noitidart
Feb 18 '18 at 22:56
@ArthurAttout I use the same exact one, I even made some PRs to fix some stuff.
– Noitidart
Feb 18 '18 at 22:56
add a comment |
Just an add on @Noitidart Answer, your getPackages() inside "MainApplication.java" will look like this
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNCardViewPackage()
);
}
add a comment |
Just an add on @Noitidart Answer, your getPackages() inside "MainApplication.java" will look like this
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNCardViewPackage()
);
}
add a comment |
Just an add on @Noitidart Answer, your getPackages() inside "MainApplication.java" will look like this
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNCardViewPackage()
);
}
Just an add on @Noitidart Answer, your getPackages() inside "MainApplication.java" will look like this
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNCardViewPackage()
);
}
answered Jan 4 at 7:47
user3571779user3571779
112
112
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48853490%2fnative-component-for-rncardview-does-not-exist%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I use this module succesfully. It has some auto linking issues (when running
react-native link
. Let me check and get back to you.– Noitidart
Feb 18 '18 at 17:12
I've been trying to setup react-native-cardview on my project, but I keep on receiving the same error as the author had. My project made with react-native init, no Expo at all, I have checked all the files in an android folder about ten times and everything on its places as it should be as it described on a GitHub. I have no idea why it does not work.
– user7245021
Apr 2 '18 at 14:00
I am also getting same issue , did you able to resolved the issue ?
– Anita
Oct 22 '18 at 6:14
I fixed my problem, the answer is accepted below
– Arthur Attout
Oct 22 '18 at 8:33