Permalink
Browse files

add CoreEventTypes with LayoutEvent

Reviewed By: mhollweck

Differential Revision: D6554426

fbshipit-source-id: 856fcb8017682bc203fd69f5f4c93704816046ac
  • Loading branch information...
sahrens authored and facebook-github-bot committed Dec 13, 2017
1 parent eaa8499 commit 2d4bedba0f6a8f2cfe597a1044822eb635d5e243
Showing with 27 additions and 11 deletions.
  1. +1 −11 IntegrationTests/LayoutEventsTest.js
  2. +26 −0 Libraries/Types/CoreEventTypes.js
@@ -29,17 +29,7 @@ function debug(...args) {
// console.log.apply(null, arguments);
}
type Layout = {
x: number;
y: number;
width: number;
height: number;
};
type LayoutEvent = {
nativeEvent: {
layout: Layout;
};
};
import type {Layout, LayoutEvent} from 'CoreEventTypes';
type Style = {
margin?: number,
padding?: number,
@@ -0,0 +1,26 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule CoreEventTypes
* @flow
* @format
*/
'use strict';
export type Layout = {
x: number,
y: number,
width: number,
height: number,
};
export type LayoutEvent = {
nativeEvent: {
layout: Layout,
},
};

0 comments on commit 2d4bedb

Please sign in to comment.