import { StyleSheet, View, SafeAreaView, Platform, StatusBar } from 'react-native'
import React from 'react'
export default function Home() {
return (
<SafeAreaView style={styles.AndroidSafeArea}>
<View>
<Text>Here we enable safe area view in android devices</Text>
</View>
</SafeAreaView>
)
}
// Create custom style
const styles = StyleSheet.create({
AndroidSafeArea: {
flex: 1,
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0
}
})
-
Notifications
You must be signed in to change notification settings - Fork 0
rajonahmed749/React-Native-Tricks
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.