React-native: RN 0.51.0 NSMutableDictionary cannot be converted to a YGValue

Created on 8 Dec 2017  路  1Comment  路  Source: facebook/react-native

Is this a bug report?

YES

Have you read the Contributing Guidelines?

YES

Environment

Environment:
OS: macOS High Sierra 10.13.1
Node: 8.9.2
Yarn: 1.3.2
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.51.0 => 0.51.0

Steps to Reproduce

I've just updated RN from 0.50.4 to 0.51.0 and this occured:

2017-12-08 14:23:03.743 [error][tid:com.facebook.react.ShadowQueue][RCTConvert.m:507] Error setting property 'start' of RCTView with tag #20: JSON value '{
    x = 1;
    y = "0.19";
}' of type NSMutableDictionary cannot be converted to a YGValue.
2017-12-08 14:23:03.743700+0100 HabitChallenge DEV[85512:2358649] Error setting property 'start' of RCTView with tag #20: JSON value '{
    x = 1;
    y = "0.19";
}' of type NSMutableDictionary cannot be converted to a YGValue.
2017-12-08 14:23:03.748 [error][tid:com.facebook.react.ShadowQueue][RCTConvert.m:507] Error setting property 'end' of RCTView with tag #20: JSON value '{
    x = "0.5";
    y = 1;
}' of type NSMutableDictionary cannot be converted to a YGValue.
2017-12-08 14:23:03.747804+0100 HabitChallenge DEV[85512:2358649] Error setting property 'end' of RCTView with tag #20: JSON value '{
    x = "0.5";
    y = 1;
}' of type NSMutableDictionary cannot be converted to a YGValue.
2017-12-08 14:23:03.765 [error][tid:com.facebook.react.ShadowQueue][RCTConvert.m:507] Error setting property 'start' of BVLinearGradient with tag #29: JSON value '{
    x = 1;
    y = "0.25";
}' of type NSMutableDictionary cannot be converted to a YGValue.
2017-12-08 14:23:03.765209+0100 HabitChallenge DEV[85512:2358641] Error setting property 'start' of BVLinearGradient with tag #29: JSON value '{
    x = 1;
    y = "0.25";
}' of type NSMutableDictionary cannot be converted to a YGValue.
2017-12-08 14:23:03.770 [error][tid:com.facebook.react.ShadowQueue][RCTConvert.m:507] Error setting property 'end' of BVLinearGradient with tag #29: JSON value '{
    x = "0.5";
    y = 1;
}' of type NSMutableDictionary cannot be converted to a YGValue.
2017-12-08 14:23:03.770347+0100 HabitChallenge DEV[85512:2358641] Error setting property 'end' of BVLinearGradient with tag #29: JSON value '{
    x = "0.5";
    y = 1;
}' of type NSMutableDictionary cannot be converted to a YGValue.
2017-12-08 14:23:03.786 [error][tid:com.facebook.react.ShadowQueue][RCTConvert.m:507] Error setting property 'end' of RCTView with tag #36: JSON value '{
    x = "0.5";
    y = 1;
}' of type NSMutableDictionary cannot be converted to a YGValue.
2017-12-08 14:23:03.786666+0100 HabitChallenge DEV[85512:2358641] Error setting property 'end' of RCTView with tag #36: JSON value '{
    x = "0.5";
    y = 1;
}' of type NSMutableDictionary cannot be converted to a YGValue.
2017-12-08 14:23:03.792 [error][tid:com.facebook.react.ShadowQueue][RCTConvert.m:507] Error setting property 'start' of RCTView with tag #36: JSON value '{
    x = 1;
    y = "0.19";
}' of type NSMutableDictionary cannot be converted to a YGValue.
2017-12-08 14:23:03.792357+0100 HabitChallenge DEV[85512:2358641] Error setting property 'start' of RCTView with tag #36: JSON value '{
    x = 1;
    y = "0.19";
}' of type NSMutableDictionary cannot be converted to a YGValue.

Simulator screenshot:
simulator screen shot - iphone 6 - 2017-12-08 at 13 41 09

Expected Behavior

Application should run same as before

Actual Behavior

(Write what happened. Add screenshots!)

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Locked

Most helpful comment

It turned out to be an issue in react-native-linear-gradient. There is already a (kinda) workaround PR for this: https://github.com/react-native-community/react-native-linear-gradient/pull/243

>All comments

It turned out to be an issue in react-native-linear-gradient. There is already a (kinda) workaround PR for this: https://github.com/react-native-community/react-native-linear-gradient/pull/243

Was this page helpful?
0 / 5 - 0 ratings