mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
Misc Flow and import fixes
1. Fixed all reported Flow errors 2. Added a few missing package declarations 3. Deleted ReactDebugHooks fork in favor of react-debug-tools
This commit is contained in:
@@ -7,7 +7,7 @@ import type { BackendBridge } from 'react-devtools-shared/src/bridge';
|
||||
import type { RendererID } from '../types';
|
||||
import type { StyleAndLayout } from './types';
|
||||
|
||||
export type ResolveNativeStyle = (stylesheetID: number) => ?Object;
|
||||
export type ResolveNativeStyle = (stylesheetID: any) => ?Object;
|
||||
|
||||
export default function setupNativeStyleEditor(
|
||||
bridge: BackendBridge,
|
||||
@@ -136,9 +136,8 @@ function measureStyle(
|
||||
);
|
||||
return;
|
||||
}
|
||||
const margin = resolveBoxStyle('margin', resolvedStyle) || EMPTY_BOX_STYLE;
|
||||
const padding =
|
||||
resolveBoxStyle('padding', resolvedStyle) || EMPTY_BOX_STYLE;
|
||||
const margin = resolvedStyle != null && resolveBoxStyle('margin', resolvedStyle) || EMPTY_BOX_STYLE;
|
||||
const padding = resolvedStyle != null && resolveBoxStyle('padding', resolvedStyle) || EMPTY_BOX_STYLE;
|
||||
bridge.send(
|
||||
'NativeStyleEditor_styleAndLayout',
|
||||
({
|
||||
|
||||
Reference in New Issue
Block a user