Release version 1.9.0

Summary:
- Fixes bindings
- Fixes benchmarks and test calls
- version 1.9.0

Reviewed By: arcanis, priteshrnandgaonkar

Differential Revision: D6759438

fbshipit-source-id: 0ea58e607e0b518aaa907cbfa82d2baea7bc1ed5
This commit is contained in:
Daniel Büchele
2018-01-19 11:25:26 -08:00
committed by Facebook Github Bot
parent 7b27a58b97
commit 42778f687b
10 changed files with 135 additions and 179 deletions

View File

@@ -172,4 +172,4 @@ export type Yoga$PositionType =
export type Yoga$ExperimentalFeature = typeof CONSTANTS.EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS;
export default CONSTANTS;
module.exports = CONSTANTS;

View File

@@ -10,8 +10,7 @@
* @format
*/
import Yoga from './entry-common';
const Yoga = require('./entry-common');
const nbind = require('../build/Release/nbind.js');
let ran = false;

View File

@@ -10,7 +10,7 @@
* @format
*/
import CONSTANTS from './YGEnums';
const CONSTANTS = require('./YGEnums');
import type {
Yoga$Edge,
Yoga$FlexWrap,
@@ -230,7 +230,7 @@ type Yoga = {
...typeof CONSTANTS,
};
export default (bind: any, lib: any): Yoga => {
module.exports = (bind: any, lib: any): Yoga => {
function patch(prototype, name, fn) {
let original = prototype[name];

View File

@@ -10,7 +10,7 @@
* @format
*/
import Yoga from './entry-common';
const Yoga = require('./entry-common');
const nbind = require('nbind');
const {bind, lib} = nbind.init(__dirname + '/../');
module.exports = Yoga(bind, lib);