Skip to content

Commit

Permalink
Switch to YogaConfigFactory.create
Browse files Browse the repository at this point in the history
Summary: Switch to `YogaNodeFactory.create()` instead of using `YogaNode.create()`

Reviewed By: SidharthGuglani

Differential Revision: D17266408

fbshipit-source-id: 69e1e59c7345d16eb174af97c2e231666a02354b
  • Loading branch information
amir-shalem authored and facebook-github-bot committed Sep 17, 2019
1 parent 92fed26 commit 393b5f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
package com.facebook.react.uimanager;

import com.facebook.yoga.YogaConfig;
import com.facebook.yoga.YogaConfigFactory;

public class ReactYogaConfigProvider {

private static YogaConfig YOGA_CONFIG;

public static YogaConfig get() {
if (YOGA_CONFIG == null) {
YOGA_CONFIG = new YogaConfig();
YOGA_CONFIG = YogaConfigFactory.create();
YOGA_CONFIG.setPointScaleFactor(0f);
YOGA_CONFIG.setUseLegacyStretchBehaviour(true);
}
Expand Down

0 comments on commit 393b5f2

Please sign in to comment.