Skip to content

Commit 1398551

Browse files
committed
Format with prettier.
1 parent 4c87fc0 commit 1398551

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

FastImage.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import React, { PropTypes, Component } from 'react'
2-
import { requireNativeComponent, Image, NativeModules, View } from 'react-native'
2+
import {
3+
requireNativeComponent,
4+
Image,
5+
NativeModules,
6+
View,
7+
} from 'react-native'
38

49
const resolveAssetSource = require('react-native/Libraries/Image/resolveAssetSource')
510

@@ -51,12 +56,12 @@ FastImage.priority = {
5156
}
5257

5358
FastImage.prefetch = function(source) {
54-
let urls = source;
59+
let urls = source
5560
if (typeof source === 'string') {
56-
urls = [source];
61+
urls = [source]
5762
}
5863

59-
NativeModules.FastImageView.prefetch(urls);
64+
NativeModules.FastImageView.prefetch(urls)
6065
}
6166

6267
const FastImageSourcePropType = PropTypes.shape({

0 commit comments

Comments
 (0)