Skip to content

Commit

Permalink
Fix type errors that will be exposed in future versions of Flow (#44049)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #44049

Changelog: [Internal]

Reviewed By: panagosg7

Differential Revision: D56036891

fbshipit-source-id: e7771d51bd8797c7237a66b499e1e6e082b8912d
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Apr 11, 2024
1 parent 401f2fb commit 78d523d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/react-native/Libraries/Inspector/ElementBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ const React = require('react');

class ElementBox extends React.Component<$FlowFixMeProps> {
render(): React.Node {
// $FlowFixMe[underconstrained-implicit-instantiation]
const style = flattenStyle(this.props.style) || {};
let margin = resolveBoxStyle('margin', style);
let padding = resolveBoxStyle('padding', style);
let margin: ?$ReadOnly<Style> = resolveBoxStyle('margin', style);
let padding: ?$ReadOnly<Style> = resolveBoxStyle('padding', style);

const frameStyle = {...this.props.frame};
const contentStyle: {width: number, height: number} = {
Expand Down

0 comments on commit 78d523d

Please sign in to comment.