📌  相关文章
📜  react native android padding style - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:15.753000             🧑  作者: Mango

代码示例1
import { Platform} from 'react-native';
import { StyleSheet,Text, SafeAreaView } from 'react-native';


Random Text
 

const styles = StyleSheet.create({
     safeView:{
        flex: 1,
        paddingTop: Platform.OS === 'android' ? 25 : 0, //Android
      }
});