Skip to content

Commit f28eee6

Browse files
committed
Fix linting
1 parent c0f2187 commit f28eee6

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

packages/react-native/Libraries/Components/StatusBar/StatusBar.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ class StatusBar extends React.Component<StatusBarProps> {
295295
* @deprecated
296296
*/
297297
static setBackgroundColor(color: ColorValue, animated?: boolean): void {
298-
console.warn('`setBackgroundColor` is deprecated and no longer has any effect');
298+
console.warn(
299+
'`setBackgroundColor` is deprecated and no longer has any effect',
300+
);
299301
}
300302

301303
/**

packages/react-native/Libraries/Modal/Modal.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,15 @@ function confirmProps(props: ModalProps) {
184184
`Modal with '${props.presentationStyle}' presentation style and 'transparent' value is not supported.`,
185185
);
186186
}
187-
if (typeof props.statusBarTranslucent !== "undefined") {
188-
console.warn('`statusBarTranslucent` is deprecated and no longer has any effect');
187+
if (typeof props.statusBarTranslucent !== 'undefined') {
188+
console.warn(
189+
'`statusBarTranslucent` is deprecated and no longer has any effect',
190+
);
189191
}
190-
if (typeof props.navigationBarTranslucent !== "undefined") {
191-
console.warn('`navigationBarTranslucent` is deprecated and no longer has any effect');
192+
if (typeof props.navigationBarTranslucent !== 'undefined') {
193+
console.warn(
194+
'`navigationBarTranslucent` is deprecated and no longer has any effect',
195+
);
192196
}
193197
}
194198
}

packages/react-native/types/__typetests__/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,9 +1331,7 @@ class StatusBarTest extends React.Component {
13311331

13321332
console.log('height:', StatusBar.currentHeight);
13331333

1334-
return (
1335-
<StatusBar barStyle="light-content" />
1336-
);
1334+
return <StatusBar barStyle="light-content" />;
13371335
}
13381336
}
13391337

0 commit comments

Comments
 (0)