mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 20:01:01 +08:00
Remove fbjs/lib/emptyFunction from react-native
Summary: This removes `emptyFunction` usage from react-native. Reviewed By: yungsters Differential Revision: D13138187 fbshipit-source-id: eaa327884aac2cabb99024077e3407cb99c946d2
This commit is contained in:
committed by
Facebook Github Bot
parent
2de01cb54d
commit
cfef04e760
@@ -17,8 +17,6 @@ const React = require('React');
|
||||
const StyleSheet = require('StyleSheet');
|
||||
const View = require('View');
|
||||
|
||||
const emptyFunction = require('fbjs/lib/emptyFunction');
|
||||
|
||||
import type {LayoutEvent, PressEvent} from 'CoreEventTypes';
|
||||
import type {GestureState} from 'PanResponder';
|
||||
|
||||
@@ -55,6 +53,8 @@ const RIGHT_SWIPE_BOUNCE_BACK_DURATION = 300;
|
||||
const RIGHT_SWIPE_THRESHOLD = 30 * SLOW_SPEED_SWIPE_FACTOR;
|
||||
const DEFAULT_SWIPE_THRESHOLD = 30;
|
||||
|
||||
const emptyFunction = () => {};
|
||||
|
||||
type Props = $ReadOnly<{|
|
||||
children?: ?React.Node,
|
||||
isOpen?: ?boolean,
|
||||
|
||||
Reference in New Issue
Block a user