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

Red outline instead of shadow #14

Closed
WalasPrime opened this issue Oct 12, 2017 · 3 comments
Closed

Red outline instead of shadow #14

WalasPrime opened this issue Oct 12, 2017 · 3 comments
Projects

Comments

@WalasPrime
Copy link

Android 5.0.1 (Galaxy S4)
On a clean project I get a red outline around my content instead of a shadow. I also get this error:

Warning: Native component for "RNCardView" does not exist
- node_modules\expo\src\Logs.js:187:24 in newConsoleFunc
- node_modules\react-native\node_modules\fbjs\lib\warning.js:36:22 in printWarning
- node_modules\react-native\node_modules\fbjs\lib\warning.js:60:27 in warning
- node_modules\react-native\Libraries\ReactNative\requireNativeComponent.js:52:12 in requireNativeComponent
- node_modules\react-native-cardview\libs\CardView.android.js:12:40 in <unknown>
- node_modules\metro-bundler\src\Resolver\polyfills\require.js:174:12 in loadModuleImplementation
- node_modules\metro-bundler\src\Resolver\polyfills\require.js:126:36 in guardedLoadModule
- node_modules\metro-bundler\src\Resolver\polyfills\require.js:110:20 in _require
- node_modules\react-native-cardview\index.js:1:0 in <unknown>
- node_modules\metro-bundler\src\Resolver\polyfills\require.js:174:12 in loadModuleImplementation
- node_modules\metro-bundler\src\Resolver\polyfills\require.js:126:36 in guardedLoadModule
- node_modules\metro-bundler\src\Resolver\polyfills\require.js:110:20 in _require
* App.js:3:0 in <unknown>
- node_modules\metro-bundler\src\Resolver\polyfills\require.js:174:12 in loadModuleImplementation
- node_modules\metro-bundler\src\Resolver\polyfills\require.js:126:36 in guardedLoadModule
- ... 6 more stack frames from framework internals

I've just done npm install ... and react-native link ... which properly modified the android build project. The whole project builds without errors.
Anything else I can do to diagnose this?

@Kishanjvaghela
Copy link
Owner

Kishanjvaghela commented Oct 12, 2017

@WalasPrime Open your project in Android Studios and check library is properly linked or not in your project.

@dabit3
Copy link

dabit3 commented Nov 9, 2017

@WalasPrime this also happened to me. I realized that the react-native-link command did everything except add the package to MainApplication.java. This will fix the issue I think.

@WalasPrime
Copy link
Author

@dabit3 thanks for the tip, I'll check this as soon as I can

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

No branches or pull requests

3 participants