Fix tests.
This commit is contained in:
parent
006d0b0a9b
commit
194619921b
|
@ -17,5 +17,6 @@ exports[`FastImage renders correctly. 1`] = `
|
||||||
"uri": "https://facebook.github.io/react/img/logo_og.png",
|
"uri": "https://facebook.github.io/react/img/logo_og.png",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
style={undefined}
|
||||||
/>
|
/>
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { Component } from 'react'
|
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'
|
import StatusBarUnderlay, { STATUS_BAR_HEIGHT } from './StatusBarUnderlay'
|
||||||
|
|
||||||
const getImageUrl = (id, width, height) =>
|
const getImageUrl = (id, width, height) =>
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Platform, StatusBar, StyleSheet, View } from 'react-native'
|
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} />
|
export default () => <View style={styles.statusBarUnderlay} />
|
||||||
|
|
||||||
|
@ -14,4 +15,4 @@ const styles = StyleSheet.create({
|
||||||
height: STATUS_BAR_HEIGHT,
|
height: STATUS_BAR_HEIGHT,
|
||||||
backgroundColor: 'white',
|
backgroundColor: 'white',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue