Skip to content

Commit 2da60a8

Browse files
empyricalfacebook-github-bot
authored andcommitted
Prettify remaining unprettified files (#21327)
Summary: This PR is the result of running `yarn prettify` on the codebase - which caught a few files that were not prettified. This will make instructing people to run prettify a bit less complicated, since unrelated files will not show up in diffs. Pull Request resolved: #21327 Differential Revision: D10046057 Pulled By: TheSavior fbshipit-source-id: 2c771a3c758c72816c707e32ee2f4587e466f277
1 parent ae1817f commit 2da60a8

File tree

9 files changed

+418
-383
lines changed

9 files changed

+418
-383
lines changed

Libraries/Components/ScrollView/ScrollView.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ type IOSProps = $ReadOnly<{|
218218
*/
219219
scrollsToTop?: ?boolean,
220220
/**
221-
* Fires when the scroll view scrolls to top after the status bar has been tapped
222-
* @platform ios
223-
*/
221+
* Fires when the scroll view scrolls to top after the status bar has been tapped
222+
* @platform ios
223+
*/
224224
onScrollToTop?: ?Function,
225225
/**
226226
* When true, shows a horizontal scroll indicator.

Libraries/Components/TextInput/TextInput.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,7 @@ const TextInput = createReactClass({
949949
<Text
950950
style={props.style}
951951
allowFontScaling={props.allowFontScaling}
952-
maxFontSizeMultiplier={props.maxFontSizeMultiplier}
953-
>
952+
maxFontSizeMultiplier={props.maxFontSizeMultiplier}>
954953
{children}
955954
</Text>
956955
);

Libraries/Image/Image.ios.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ function prefetch(url: string) {
4545
return ImageViewManager.prefetchImage(url);
4646
}
4747

48-
async function queryCache(urls: Array<string>): Promise<Map<string, 'memory' | 'disk'>> {
48+
async function queryCache(
49+
urls: Array<string>,
50+
): Promise<Map<string, 'memory' | 'disk'>> {
4951
return await ImageViewManager.queryCache(urls);
5052
}
5153

RNTester/js/ImageExample.js

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,12 @@ var NetworkImageCallbackExample = createReactClass({
7777
this._loadEventFired(
7878
`✔ Prefetch OK (+${new Date() - mountTime}ms)`,
7979
);
80-
Image.queryCache([IMAGE_PREFETCH_URL]).then((map) => {
80+
Image.queryCache([IMAGE_PREFETCH_URL]).then(map => {
8181
var result = map.get(IMAGE_PREFETCH_URL);
8282
if (result) {
8383
this._loadEventFired(
84-
`✔ queryCache "${result}" (+${new Date() - mountTime}ms)`,
84+
`✔ queryCache "${result}" (+${new Date() -
85+
mountTime}ms)`,
8586
);
8687
} else {
8788
this._loadEventFired(
@@ -460,23 +461,31 @@ exports.examples = [
460461
source={fullImage}
461462
/>
462463
<Image
463-
style={[styles.base, styles.leftMargin, {
464-
borderWidth: 10,
465-
borderTopLeftRadius: 10,
466-
borderBottomRightRadius: 20,
467-
borderColor: 'green',
468-
}]}
464+
style={[
465+
styles.base,
466+
styles.leftMargin,
467+
{
468+
borderWidth: 10,
469+
borderTopLeftRadius: 10,
470+
borderBottomRightRadius: 20,
471+
borderColor: 'green',
472+
},
473+
]}
469474
source={fullImage}
470475
/>
471476
<Image
472-
style={[styles.base, styles.leftMargin, {
473-
borderWidth: 5,
474-
borderTopLeftRadius: 10,
475-
borderTopRightRadius: 20,
476-
borderBottomRightRadius: 30,
477-
borderBottomLeftRadius: 40,
478-
borderColor: 'red',
479-
}]}
477+
style={[
478+
styles.base,
479+
styles.leftMargin,
480+
{
481+
borderWidth: 5,
482+
borderTopLeftRadius: 10,
483+
borderTopRightRadius: 20,
484+
borderBottomRightRadius: 30,
485+
borderBottomLeftRadius: 40,
486+
borderColor: 'red',
487+
},
488+
]}
480489
source={fullImage}
481490
/>
482491
</View>

0 commit comments

Comments
 (0)