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

Adding pod target config to yoga to solve warning. #17722

Closed
wants to merge 1 commit into from

Conversation

OceanHorn
Copy link

Adding pod target config to yoga to solve warning when integrate react-native of 0.52.1 with cocoapods .

Warning:

/Users/OceanHorn/ReactNative/demo0124/Demo/node_modules/react-native/ReactCommon/Yoga/yoga/YGNodePrint.cpp:208:46: error: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'const uint32_t' (aka 'const unsigned int') [-Werror,-Wshorten-64-to-32]
  const uint32_t childCount = node->children.size();
                 ~~~~~~~~~~   ~~~~~~~~~~~~~~~^~~~~~
1 error generated.

Motivation

Solve warning when integrate react-native 0.52.1 with cocoapods.

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/react-native-website, and link to your PR here.)

Release Notes

[IOS] [BUGFIX] [Yoga] - Added a target config.

…eact-native` of `0.52.1` with `cocoapods` .

Warning:
```
/Users/OceanHorn/ReactNative/demo0124/Demo/node_modules/react-native/ReactCommon/Yoga/yoga/YGNodePrint.cpp:208:46: error: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'const uint32_t' (aka 'const unsigned int') [-Werror,-Wshorten-64-to-32]
  const uint32_t childCount = node->children.size();
                 ~~~~~~~~~~   ~~~~~~~~~~~~~~~^~~~~~
1 error generated.
```
@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@shergin
Copy link
Contributor

shergin commented Jan 25, 2018

Why shouldn't we fix this warning (potential error in Yoga) instead?

@maxkomarychev
Copy link
Contributor

Please do not hide the error instead of solving it!

@maxkomarychev
Copy link
Contributor

It seems to be no longer relevant after v0.52.2

@shergin shergin closed this Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants