question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception: Error while updating property 'd' in shadow node of type: ARTShape

See original GitHub issue

I am using this react-native-simple-gauge library in a project as below where the props fill is assigned a value calculated as percentage. If I assign a hard coded value like {30} to props fill, the code works perfectly. But with the calculated value it throws an exception:

_Error while updating property ‘d’ in shadow node of type: ARTShape

null

TypeError: expected dynamic type double', but had type null’ updateShadowNodeProp ViewManagersPropertyCache.java:113 setProperty ViewManagerPropertyUpdater.java:154 updateProps ViewManagerPropertyUpdater.java:58 updateProperties ReactShadowNodeImpl.java:298 updateView UIImplementation.java:309 updateView UIManagerModule.java:372 invoke Method.java invoke Method.java:372 invoke JavaMethodWrapper.java:374 invoke JavaModuleWrapper.java:162 run NativeRunnable.java handleCallback Handler.java:739 dispatchMessage Handler.java:95 dispatchMessage MessageQueueThreadHandler.java:31 loop Looper.java:135 run MessageQueueThreadImpl.java:194 run Thread.java:818_

Sample code:

<AnimatedGaugeProgress    
    size={300}
    width={5}
    prefill={70}
    fill={parseFloat(percentage_marks)}
    rotation={90}
    cropDegree={120}
    tintColor="#D6E1F1"
    backgroundColor="#F2F4F7"
    stroke={[2, 2]} //For a equaly dashed line
    strokeCap="circle" >
        {(fill) => (
            <View style={{position:'absolute', top: 20, left: 5, width: 290, height: 140, alignItems: 'center', justifyContent: 'center'}}>
                <Text style={styles.lineText}>Your Score is {percentage_marks} %</Text>
            </View>
        )}
</AnimatedGaugeProgress>`

What can be the cause for this exception?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JonghunYucommented, Mar 4, 2018

@harshada-bhanose can you try with

{!!percentage_marks && <AnimatedGaugeProgress />}

https://github.com/facebook/react-native/issues/13243#issuecomment-335488473

0reactions
harshada-bhanosecommented, Mar 6, 2018

@JonghunYu It woks…thanks !!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while updating property 'stroke' in shadow node of type ...
This happens when we used Progress.Circle and Progress.CircleSnail "Error while updating property 'stroke' in shadow node of type: ARTShape.
Read more >
Error while updating property 'X' in shadow node of type
The error explains that it expects a variable as integer, and not as a string value. Example. <BarItem barInterval={'5'} /> is wrong, but...
Read more >
error while updating property 'justifycontent' in shadow node of ...
If the NodeType value isn't present, create it using type: DWORD. Error while updating property 'stroke' in shadow node of type: ARTShape. Teams....
Read more >
Error On An Android Studio Project While Updating Property:
FATAL EXCEPTION: main com.facebook.react.bridge. ... Error while updating property 'height' in shadow node of type: RCTView. . Error while updating property ...
Read more >
Error while updating property 'stroke' in shadow node of type
ARTShape 问题,这里给大家分享下。 当然没踩坑的可以略过,给自己留点宝贵的时间去做点别的事情。 二、解决方案.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found