Code Monkey home page Code Monkey logo

.github's Introduction

.github

org wide community health files

See this guide or this blog post for more information about shared community health files.

.github's People

Contributors

boygirl avatar carbonrobot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

corsica88

.github's Issues

null object reference SVG error on Android

Hey all,

The cursed Android SVG crash has hit me again and I just cannot find out why it might be happening. The full error is:

Error while updating property 'd' of a view managed by: RNSVGPath
null
Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference

Everything is working fine on iOS. I know that this error usually rears its ugly head when you are only supplying less than 2 data points on Android. I took care of that long ago, but the error is back.

I have a screen with 3 VictoryArea components all shown in a single chart. I'm supplying the data to the components via State. If I log the data, copy it, and hard-code it into the data for the VictoryArea components, then everything works without the crash. Likewise, if I hard-code the data into State, everything works. Even more, if I hard-code the data into just one of the 3 components and supply the other 2 from State, then it works. It doesn't seem to matter which component I hard-code. It only seems to cause a problem when all three are using data from State.

react-native: "0.61.5",
react-native-svg: "^9.13.6",
victory-native: "^33.0.1",

Any clue!??!! I've included the data that is causing the problem below:

data1={[
{ date: '03 / 02', value: 0.28 },
{ date: '03 / 03', value: 0.14 },
{ date: '03 / 04', value: 0.45 },
{ date: '03 / 06', value: 0.77 },
{ date: '03 / 07', value: 0.54 },
]}
data2={[
{ date: '03 / 02', value: 0.57 },
{ date: '03 / 03', value: 0.71 },
{ date: '03 / 04', value: 0.35 },
{ date: '03 / 06', value: 0.24 },
{ date: '03 / 07', value: 0.24 },
]}
data3={[
{ date: '03 / 02', value: 0.14 },
{ date: '03 / 03', value: 0.14 },
{ date: '03 / 04', value: 0.2 },
{ date: '03 / 06', value: 0 },
{ date: '03 / 07', value: 0.22 },
]}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.