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.

Android: Error while updating property 'endNode' of a view managed by: RNSharedElementTransition

See original GitHub issue

I got the following error on Android:

android error screenshot

The error was thrown after I played around a little bit, so it only appears sometimes. Don’t know an exact way on how to reproduce this…

In my project I have a lot of navigation and animation going on, including many shared elements, this doesn’t seem to be the cause for this issue though, as it also happened after I stripped my code down to a minimum just so I can test it.

package.json

"react-native": "0.62.2",
"react-native-shared-element": "^0.7.0",
"react-navigation-shared-element": "^5.0.0-alpha1",
"@react-navigation/native": "^5.1.6",
"@react-navigation/stack": "^5.2.13",
"@react-navigation/bottom-tabs": "^5.2.7",

I’m not sure if this is react-native-shared-element or react-navigation-shared-element related…

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kdo1234commented, Dec 28, 2020

I have the same issue on Android 30. Wrapping each SharedElement and each child of the SharedElement with a <View collapsable={false}> seemed to resolve the issue in the debug apk, but not in the release apk. I thought the issue might be related to the new detachInactiveScreens logic in React Navigation and react-native-screens, so I tried with detachInactiveScreens={false} and detachInactiveScreens={false} as well as calling enableScreens() from react-native-screens. This didn’t resolve the issue. I also tried versions of React Navigation and react-native-screens from before detachInactiveScreens was introduced and that didn’t resolve the issue.

Latest versions used: “@react-navigation/bottom-tabs”: “5.11.2”, “@react-navigation/compat”: “5.3.10”, “@react-navigation/material-top-tabs”: “5.3.10”, “@react-navigation/native”: “5.8.10”, “@react-navigation/stack”: “5.12.8”, “react-native-tab-view”: “2.15.2”, “react-native-screens”: “2.16.1”, “react-native-shared-element”: “0.7.0”, “react-navigation-shared-element”: “5.0.0-alpha1”,

Versions from from detachInactiveScreens was introduced: “@react-navigation/bottom-tabs”: “5.11.2”, “@react-navigation/compat”: “5.3.10”, “@react-navigation/material-top-tabs”: “5.3.10”, “@react-navigation/native”: “5.8.10”, “@react-navigation/stack”: “5.10.0”, “react-native-tab-view”: “2.15.2”, “react-native-screens”: “2.13.0”, “react-native-shared-element”: “0.7.0”, “react-navigation-shared-element”: “5.0.0-alpha1”,

0reactions
factorycreacomcommented, Jan 17, 2022

I had the same problem and solved it as follows.

if you used flatlist

NOT WORK:

const RenderItem = (item,index) => {
return <View><Text>{item}</Text></View>;
}
<FlatList
...
renderItem={(item,index) => <RenderItem item={item} index={index} />} />

WORK:

const RenderItem = (item,index) => {
return <View><Text>{item}</Text></View>;
}
<FlatList
...
renderItem={(item,index) => RenderItem(index,item)} />
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while updating property 'endNode' of a view managed by ...
I have noticed that I have this problem when I use a SharedElement inside a ListHeaderComponent of a FlatList . Only android.
Read more >
error while updating property 'title' of a view managed by
I imported createNativeStackNavigator from the wrong package. In App.js I instead imported it using import { createNativeStackNavigator } ...
Read more >
How to use Shared Element Transition with React Navigation v5
For example, to run this app in its initial state on an iOS simulator, ... Error while updating property 'endNode' of a view...
Read more >
Error while updating property 'source' of a view managed by
2021-05-13 20:15:43.614 17294-17294/com.xxx.test E/unknown:ViewManager: Error while updating prop source java.lang.reflect.
Read more >
Can you add these blocks in thunkable?
:x: Width and Height Blank screen with thunkable logo :x: Disabled Error while updating property'disabled' of a view managed by:RCTText at
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