Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RN 0.51.0 NSMutableDictionary cannot be converted to a YGValue #17122

Closed
dluksza opened this issue Dec 8, 2017 · 1 comment
Closed

RN 0.51.0 NSMutableDictionary cannot be converted to a YGValue #17122

dluksza opened this issue Dec 8, 2017 · 1 comment
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@dluksza
Copy link

dluksza commented Dec 8, 2017

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.)

@dluksza
Copy link
Author

dluksza commented Dec 8, 2017

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

@dluksza dluksza closed this as completed Dec 8, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Dec 8, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Dec 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants