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

Android: not working RNSVGLine #42

Closed
1 of 2 tasks
namnnnal opened this issue Feb 7, 2018 · 4 comments
Closed
1 of 2 tasks

Android: not working RNSVGLine #42

namnnnal opened this issue Feb 7, 2018 · 4 comments

Comments

@namnnnal
Copy link

namnnnal commented Feb 7, 2018

What is the problem?

Android: Error while updating property 'strokeWidth' in shadow node of type: RNSVGLine #583
TypeError: expected dynamic type double, but had type string

When does it happen?

What platform?

  • iOS
  • Android
    I was working on Expo version 24.0.0 It uses "react-native-svg-charts": "^2.1.0",
    IOS working fine

Code to reproduce

![35194523-fc730914-feda-11e7-8c4b-d356af6ee276](https://user-images.githubusercontent.com/12689764/35909846-5a9926be-0c27-11e8-8f49-865aa29f8982.jpg)
<AreaChart
                        style={{ height: 200 }}
                        dataPoints={this.state.charts}
                        contentInset={ { top: 30, bottom: 30 } }
                        curve={shape.curveNatural}
                        svg={{
                            fill: 'rgba(134, 65, 244, 0.2)',
                            stroke: 'rgb(134, 65, 244)',
                        }}
                    />
@namnnnal
Copy link
Author

namnnnal commented Feb 7, 2018

35194523-fc730914-feda-11e7-8c4b-d356af6ee276

@JesperLekland
Copy link
Owner

I think this might be a compatibility issue with the react-native-svg that Expo uses. What version is that?

@namnnnal
Copy link
Author

namnnnal commented Feb 8, 2018

I just install react-native-svg-charts don't install react-native-svg because with expo react-native-svg this is pre-installed. Jump ahead to Usage
I dont know version that

@JesperLekland
Copy link
Owner

This snack works fine. Closing

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

No branches or pull requests

2 participants