Fix tests.

This commit is contained in:
Dylan Vann 2018-01-30 20:36:30 -05:00
parent 006d0b0a9b
commit 194619921b
3 changed files with 5 additions and 3 deletions

View File

@ -17,5 +17,6 @@ exports[`FastImage renders correctly. 1`] = `
"uri": "https://facebook.github.io/react/img/logo_og.png",
}
}
style={undefined}
/>
`;

View File

@ -1,5 +1,5 @@
import React, { Component } from 'react'
import { FlatList, StyleSheet, Text, View, } from 'react-native'
import { FlatList, StyleSheet, Text, View } from 'react-native'
import StatusBarUnderlay, { STATUS_BAR_HEIGHT } from './StatusBarUnderlay'
const getImageUrl = (id, width, height) =>

View File

@ -1,7 +1,8 @@
import React from 'react'
import { Platform, StatusBar, StyleSheet, View } from 'react-native'
export const STATUS_BAR_HEIGHT = Platform.OS === 'ios' ? 20 : StatusBar.currentHeight
export const STATUS_BAR_HEIGHT =
Platform.OS === 'ios' ? 20 : StatusBar.currentHeight
export default () => <View style={styles.statusBarUnderlay} />
@ -14,4 +15,4 @@ const styles = StyleSheet.create({
height: STATUS_BAR_HEIGHT,
backgroundColor: 'white',
},
})
})