jose920405
jose920405

Reputation: 8057

Node has not been attached to a view in `PropsAnimatedNode.updateView`

Sometimes I can see this message but only in android, I think it comes out every time an alert is displayed.

Alert.alert('Oops!', this.props.user.errorMessage,
     [{
        text: 'OK', onPress: () => console.log('here press');
     }]);

The error is:

enter image description here

Anyone have any idea that may be causing this problem?

thanks

RELATED

github Issue

Upvotes: 4

Views: 2104

Answers (1)

Alberto Schiabel
Alberto Schiabel

Reputation: 1139

As I've commented in the Github Issue that you linked, your error is probably due to the fact that you're trying to call mapStateToProps with a key that doesn't exist. Obviously, this is just an hypothesis, as we would certainly need more info regarding your project. Do you use redux? Which react-native version are you running? Where does this.props.user.errorMessage come from? Is that prop from a parent component or from a reducer?

Also, another possibility is that in the other tab you're importing some module that doesn't exist, or that isn't exported correctly.

BTW, I'm leaving this other solved issue here for reference: #438

I really hope this can be helpful to you man!

Upvotes: 3

Related Questions