879479119 / react-native-shadow

A SVG shadow component powered with react-native-svg,which can provide shadow on Android like iOS ^_^
MIT License
612 stars 82 forks source link

Failed to install and build #14

Closed devken-net closed 7 years ago

devken-net commented 7 years ago

First I try to link it via rnpm and react-native link. Then it failed and I try to manually install it following your instructions and still got this error.

"react-native": "0.44.0",
"react-native-shadow": "^1.1.2",
/myNewApp/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/SvgView.java:130: error: method obtain in class TouchEvent cannot be applied to given types;
            TouchEvent.obtain(
                      ^
  required: int,TouchEventType,MotionEvent,long,float,float,TouchEventCoalescingKeyHelper
  found: int,TouchEventType,MotionEvent,float,float,TouchEventCoalescingKeyHelper
  reason: actual and formal argument lists differ in length
1 error
:react-native-svg:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.
879479119 commented 7 years ago

Hi, I have released react-native-shadow@1.2.1, which remove the dependency of a certain version of react-native-svg, so you must install the the correct version of it according to the version of your react and react-native doc