diff --git a/README.md b/README.md index 88906f7b7..4b66c6739 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,15 @@ ```bash npm install react-native-svg --save ``` - + + # NOTICE: + - react-native-svg >= 3.2.0 only supports react-native >= 0.29.0 - react-native-svg >= 4.2.0 only supports react-native >= 0.32.0 - react-native-svg >= 4.3.0 only supports react-native >= 0.33.0 - - react-native-svg >= 4.4.0 only supports react-native >= 0.38.0 and react >=15.4.0 - + - react-native-svg >= 4.4.0 only supports react-native >= 0.38.0 and react >= 15.4.0 + - react-native-svg >= 4.5.0 only supports react-native >= 0.40.0 and react >= 15.4.0 + 2. Link native code ```bash diff --git a/android/src/main/java/com/horcrux/svg/RNSVGSvgViewManager.java b/android/src/main/java/com/horcrux/svg/RNSVGSvgViewManager.java index 0c680f782..356fbaf6e 100644 --- a/android/src/main/java/com/horcrux/svg/RNSVGSvgViewManager.java +++ b/android/src/main/java/com/horcrux/svg/RNSVGSvgViewManager.java @@ -11,9 +11,9 @@ import android.graphics.Bitmap; -import com.facebook.csslayout.CSSMeasureMode; -import com.facebook.csslayout.CSSNodeAPI; -import com.facebook.csslayout.MeasureOutput; +import com.facebook.yoga.YogaMeasureMode; +import com.facebook.yoga.YogaMeasureFunction; +import com.facebook.yoga.YogaNodeAPI; import com.facebook.react.bridge.ReadableArray; import com.facebook.react.common.MapBuilder; import com.facebook.react.uimanager.BaseViewManager; @@ -32,15 +32,15 @@ public class RNSVGSvgViewManager extends BaseViewManager=0.38.0", + "react-native": ">=0.40.0", "react": ">=15.4.0" }, "dependencies": {