-
Notifications
You must be signed in to change notification settings - Fork 260
Running Example app fails - updated versions of react-native and react-native-svg needed #55
Comments
Yes and the problem isn't unique to running on Ubuntu. The problem right now is we haven't constrained the version of the react-native-svg dependency for this library (in the root package.json) to what the current version of the library is expecting (4.4.1) and so when you do a fresh clone of the repo and do a We need to get this library updated and working with newer versions of react-native and react-native-svg (hoping to get time to clean that up in the next day or two). Until then, you should be able to do
from the After doing that and trying to do
If so, do this:
|
Thanks for the fast answer! Following you instructions, and the info from this commit: ... I finally got a beautiful barchart in my react-native ignite app running. Thanks for the help, and for the great work with this library! |
@marzolfb Thank you for your great work, I hope the rotation issue is fixed on the other module so that we can get the latest versions for all soon. |
Hi!
I have tried to run the example as described in the readme. I tried it on 2 different computers. On the second one I did a completely fresh install of react-native / android-studio, just to be sure.
Both computers run on Ubuntu 16.10. When i am building with "react-native run-android" I always get the following errors:
`../react-native-pathjs-charts/example/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/SvgViewManager.java:14: error: package com.facebook.yoga does not exist
import com.facebook.yoga.YogaMeasureMode;
^
../react-native-pathjs-charts/example/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/SvgViewManager.java:15: error: package com.facebook.yoga does not exist
import com.facebook.yoga.YogaMeasureFunction;
^
../react-native-pathjs-charts/example/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/SvgViewManager.java:16: error: package com.facebook.yoga does not exist
import com.facebook.yoga.YogaNodeAPI;
^
../react-native-pathjs-charts/example/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/SvgViewManager.java:35: error: cannot find symbol
private static final YogaMeasureFunction MEASURE_FUNCTION = new YogaMeasureFunction() {
^
symbol: class YogaMeasureFunction
location: class SvgViewManager
../react-native-pathjs-charts/example/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/SvgViewManager.java:35: error: cannot find symbol
private static final YogaMeasureFunction MEASURE_FUNCTION = new YogaMeasureFunction() {
^
symbol: class YogaMeasureFunction
location: class SvgViewManager
5 errors
:react-native-svg:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
Execution failed for task ':react-native-svg:compileReleaseJavaWithJavac'.
Anyone else getting this error?
The text was updated successfully, but these errors were encountered: