File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 5
5
Text ,
6
6
StyleSheet ,
7
7
ScrollView ,
8
+ StatusBar ,
8
9
} from 'react-native'
9
10
import Icon from 'react-native-vector-icons/Ionicons'
10
11
import FastImage from 'react-native-fast-image'
@@ -35,6 +36,7 @@ class FastImageExample extends Component {
35
36
style = { styles . container }
36
37
key = { key }
37
38
>
39
+ < StatusBar translucent barStyle = "dark-content" backgroundColor = "transparent" />
38
40
< ScrollView
39
41
style = { styles . scrollContainer }
40
42
contentContainerStyle = { styles . scrollContentContainer }
Original file line number Diff line number Diff line change 5
5
View ,
6
6
FlatList ,
7
7
Platform ,
8
+ StatusBar ,
8
9
} from 'react-native'
9
10
10
11
const getImageUrl = ( id , width , height ) => `https://unsplash.it/${ width } /${ height } ?image=${ id } `
@@ -78,7 +79,7 @@ class ImageGrid extends Component {
78
79
}
79
80
80
81
const MARGIN = 2
81
- const STATUS_BAR_HEIGHT = Platform . OS === 'ios' ? 20 : 0
82
+ const STATUS_BAR_HEIGHT = Platform . OS === 'ios' ? 20 : StatusBar . currentHeight
82
83
83
84
const styles = StyleSheet . create ( {
84
85
statusBarUnderlay : {
You can’t perform that action at this time.
0 commit comments