Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Libraries/Components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ type IOSProps = $ReadOnly<{|
*/
scrollsToTop?: ?boolean,
/**
* Fires when the scroll view scrolls to top after the status bar has been tapped
* @platform ios
*/
* Fires when the scroll view scrolls to top after the status bar has been tapped
* @platform ios
*/
onScrollToTop?: ?Function,
/**
* When true, shows a horizontal scroll indicator.
Expand Down
3 changes: 1 addition & 2 deletions Libraries/Components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -949,8 +949,7 @@ const TextInput = createReactClass({
<Text
style={props.style}
allowFontScaling={props.allowFontScaling}
maxFontSizeMultiplier={props.maxFontSizeMultiplier}
>
maxFontSizeMultiplier={props.maxFontSizeMultiplier}>
{children}
</Text>
);
Expand Down
4 changes: 3 additions & 1 deletion Libraries/Image/Image.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ function prefetch(url: string) {
return ImageViewManager.prefetchImage(url);
}

async function queryCache(urls: Array<string>): Promise<Map<string, 'memory' | 'disk'>> {
async function queryCache(
urls: Array<string>,
): Promise<Map<string, 'memory' | 'disk'>> {
return await ImageViewManager.queryCache(urls);
}

Expand Down
41 changes: 25 additions & 16 deletions RNTester/js/ImageExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ var NetworkImageCallbackExample = createReactClass({
this._loadEventFired(
`✔ Prefetch OK (+${new Date() - mountTime}ms)`,
);
Image.queryCache([IMAGE_PREFETCH_URL]).then((map) => {
Image.queryCache([IMAGE_PREFETCH_URL]).then(map => {
var result = map.get(IMAGE_PREFETCH_URL);
if (result) {
this._loadEventFired(
`✔ queryCache "${result}" (+${new Date() - mountTime}ms)`,
`✔ queryCache "${result}" (+${new Date() -
mountTime}ms)`,
);
} else {
this._loadEventFired(
Expand Down Expand Up @@ -460,23 +461,31 @@ exports.examples = [
source={fullImage}
/>
<Image
style={[styles.base, styles.leftMargin, {
borderWidth: 10,
borderTopLeftRadius: 10,
borderBottomRightRadius: 20,
borderColor: 'green',
}]}
style={[
styles.base,
styles.leftMargin,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react-native/no-inline-styles: Inline style: { borderWidth: 10,
borderTopLeftRadius: 10,
borderBottomRightRadius: 20,
borderColor: 'green' }

{
borderWidth: 10,
borderTopLeftRadius: 10,
borderBottomRightRadius: 20,
borderColor: 'green',
},
]}
source={fullImage}
/>
<Image
style={[styles.base, styles.leftMargin, {
borderWidth: 5,
borderTopLeftRadius: 10,
borderTopRightRadius: 20,
borderBottomRightRadius: 30,
borderBottomLeftRadius: 40,
borderColor: 'red',
}]}
style={[
styles.base,
styles.leftMargin,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react-native/no-inline-styles: Inline style: { borderWidth: 5,
borderTopLeftRadius: 10,
borderTopRightRadius: 20,
borderBottomRightRadius: 30,
borderBottomLeftRadius: 40,
borderColor: 'red' }

{
borderWidth: 5,
borderTopLeftRadius: 10,
borderTopRightRadius: 20,
borderBottomRightRadius: 30,
borderBottomLeftRadius: 40,
borderColor: 'red',
},
]}
source={fullImage}
/>
</View>
Expand Down
Loading